qovery.ContainerRegistry
Explore with Pulumi AI
# qovery.ContainerRegistry (Resource)
Provides a Qovery container registry resource. This can be used to create and manage Qovery container registry.
Example
import * as pulumi from "@pulumi/pulumi";
import * as qovery from "@ediri/qovery";
const myContainerRegistry = new qovery.ContainerRegistry("myContainerRegistry", {
    organizationId: qovery_organization.my_organization.id,
    kind: "DOCKER_HUB",
    url: "https://docker.io",
    config: {
        username: "<my_username>",
        password: "<my_password>",
    },
    description: "My Docker Hub Registry",
}, {
    dependsOn: [qovery_organization.my_organization],
});
import pulumi
import ediri_qovery as qovery
my_container_registry = qovery.ContainerRegistry("myContainerRegistry",
    organization_id=qovery_organization["my_organization"]["id"],
    kind="DOCKER_HUB",
    url="https://docker.io",
    config={
        "username": "<my_username>",
        "password": "<my_password>",
    },
    description="My Docker Hub Registry",
    opts = pulumi.ResourceOptions(depends_on=[qovery_organization["my_organization"]]))
package main
import (
	"github.com/dirien/pulumi-qovery/sdk/go/qovery"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := qovery.NewContainerRegistry(ctx, "myContainerRegistry", &qovery.ContainerRegistryArgs{
			OrganizationId: pulumi.Any(qovery_organization.My_organization.Id),
			Kind:           pulumi.String("DOCKER_HUB"),
			Url:            pulumi.String("https://docker.io"),
			Config: &qovery.ContainerRegistryConfigArgs{
				Username: pulumi.String("<my_username>"),
				Password: pulumi.String("<my_password>"),
			},
			Description: pulumi.String("My Docker Hub Registry"),
		}, pulumi.DependsOn([]pulumi.Resource{
			qovery_organization.My_organization,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Qovery = ediri.Qovery;
return await Deployment.RunAsync(() => 
{
    var myContainerRegistry = new Qovery.ContainerRegistry("myContainerRegistry", new()
    {
        OrganizationId = qovery_organization.My_organization.Id,
        Kind = "DOCKER_HUB",
        Url = "https://docker.io",
        Config = new Qovery.Inputs.ContainerRegistryConfigArgs
        {
            Username = "<my_username>",
            Password = "<my_password>",
        },
        Description = "My Docker Hub Registry",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            qovery_organization.My_organization,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.ContainerRegistry;
import com.pulumi.qovery.ContainerRegistryArgs;
import com.pulumi.qovery.inputs.ContainerRegistryConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var myContainerRegistry = new ContainerRegistry("myContainerRegistry", ContainerRegistryArgs.builder()
            .organizationId(qovery_organization.my_organization().id())
            .kind("DOCKER_HUB")
            .url("https://docker.io")
            .config(ContainerRegistryConfigArgs.builder()
                .username("<my_username>")
                .password("<my_password>")
                .build())
            .description("My Docker Hub Registry")
            .build(), CustomResourceOptions.builder()
                .dependsOn(qovery_organization.my_organization())
                .build());
    }
}
resources:
  myContainerRegistry:
    type: qovery:ContainerRegistry
    properties:
      # Required
      organizationId: ${qovery_organization.my_organization.id}
      kind: DOCKER_HUB
      url: https://docker.io
      config:
        username: <my_username>
        password: <my_password>
      # Optional
      description: My Docker Hub Registry
    options:
      dependson:
        - ${qovery_organization.my_organization}
Create ContainerRegistry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerRegistry(name: string, args: ContainerRegistryArgs, opts?: CustomResourceOptions);@overload
def ContainerRegistry(resource_name: str,
                      args: ContainerRegistryArgs,
                      opts: Optional[ResourceOptions] = None)
@overload
def ContainerRegistry(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      kind: Optional[str] = None,
                      organization_id: Optional[str] = None,
                      url: Optional[str] = None,
                      config: Optional[ContainerRegistryConfigArgs] = None,
                      description: Optional[str] = None,
                      name: Optional[str] = None)func NewContainerRegistry(ctx *Context, name string, args ContainerRegistryArgs, opts ...ResourceOption) (*ContainerRegistry, error)public ContainerRegistry(string name, ContainerRegistryArgs args, CustomResourceOptions? opts = null)
public ContainerRegistry(String name, ContainerRegistryArgs args)
public ContainerRegistry(String name, ContainerRegistryArgs args, CustomResourceOptions options)
type: qovery:ContainerRegistry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var containerRegistryResource = new Qovery.ContainerRegistry("containerRegistryResource", new()
{
    Kind = "string",
    OrganizationId = "string",
    Url = "string",
    Config = new Qovery.Inputs.ContainerRegistryConfigArgs
    {
        AccessKeyId = "string",
        Password = "string",
        Region = "string",
        ScalewayAccessKey = "string",
        ScalewaySecretKey = "string",
        SecretAccessKey = "string",
        Username = "string",
    },
    Description = "string",
    Name = "string",
});
example, err := qovery.NewContainerRegistry(ctx, "containerRegistryResource", &qovery.ContainerRegistryArgs{
	Kind:           pulumi.String("string"),
	OrganizationId: pulumi.String("string"),
	Url:            pulumi.String("string"),
	Config: &qovery.ContainerRegistryConfigArgs{
		AccessKeyId:       pulumi.String("string"),
		Password:          pulumi.String("string"),
		Region:            pulumi.String("string"),
		ScalewayAccessKey: pulumi.String("string"),
		ScalewaySecretKey: pulumi.String("string"),
		SecretAccessKey:   pulumi.String("string"),
		Username:          pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
})
var containerRegistryResource = new ContainerRegistry("containerRegistryResource", ContainerRegistryArgs.builder()
    .kind("string")
    .organizationId("string")
    .url("string")
    .config(ContainerRegistryConfigArgs.builder()
        .accessKeyId("string")
        .password("string")
        .region("string")
        .scalewayAccessKey("string")
        .scalewaySecretKey("string")
        .secretAccessKey("string")
        .username("string")
        .build())
    .description("string")
    .name("string")
    .build());
container_registry_resource = qovery.ContainerRegistry("containerRegistryResource",
    kind="string",
    organization_id="string",
    url="string",
    config={
        "access_key_id": "string",
        "password": "string",
        "region": "string",
        "scaleway_access_key": "string",
        "scaleway_secret_key": "string",
        "secret_access_key": "string",
        "username": "string",
    },
    description="string",
    name="string")
const containerRegistryResource = new qovery.ContainerRegistry("containerRegistryResource", {
    kind: "string",
    organizationId: "string",
    url: "string",
    config: {
        accessKeyId: "string",
        password: "string",
        region: "string",
        scalewayAccessKey: "string",
        scalewaySecretKey: "string",
        secretAccessKey: "string",
        username: "string",
    },
    description: "string",
    name: "string",
});
type: qovery:ContainerRegistry
properties:
    config:
        accessKeyId: string
        password: string
        region: string
        scalewayAccessKey: string
        scalewaySecretKey: string
        secretAccessKey: string
        username: string
    description: string
    kind: string
    name: string
    organizationId: string
    url: string
ContainerRegistry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ContainerRegistry resource accepts the following input properties:
- Kind string
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- OrganizationId string
- Id of the organization.
- Url string
- URL of the container registry.
- Config
ediri.Qovery. Inputs. Container Registry Config 
- Configuration needed to authenticate the container registry.
- Description string
- Description of the container registry.
- Name string
- Name of the container registry.
- Kind string
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- OrganizationId string
- Id of the organization.
- Url string
- URL of the container registry.
- Config
ContainerRegistry Config Args 
- Configuration needed to authenticate the container registry.
- Description string
- Description of the container registry.
- Name string
- Name of the container registry.
- kind String
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- organizationId String
- Id of the organization.
- url String
- URL of the container registry.
- config
ContainerRegistry Config 
- Configuration needed to authenticate the container registry.
- description String
- Description of the container registry.
- name String
- Name of the container registry.
- kind string
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- organizationId string
- Id of the organization.
- url string
- URL of the container registry.
- config
ContainerRegistry Config 
- Configuration needed to authenticate the container registry.
- description string
- Description of the container registry.
- name string
- Name of the container registry.
- kind str
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- organization_id str
- Id of the organization.
- url str
- URL of the container registry.
- config
ContainerRegistry Config Args 
- Configuration needed to authenticate the container registry.
- description str
- Description of the container registry.
- name str
- Name of the container registry.
- kind String
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- organizationId String
- Id of the organization.
- url String
- URL of the container registry.
- config Property Map
- Configuration needed to authenticate the container registry.
- description String
- Description of the container registry.
- name String
- Name of the container registry.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerRegistry resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ContainerRegistry Resource
Get an existing ContainerRegistry resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ContainerRegistryState, opts?: CustomResourceOptions): ContainerRegistry@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config: Optional[ContainerRegistryConfigArgs] = None,
        description: Optional[str] = None,
        kind: Optional[str] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        url: Optional[str] = None) -> ContainerRegistryfunc GetContainerRegistry(ctx *Context, name string, id IDInput, state *ContainerRegistryState, opts ...ResourceOption) (*ContainerRegistry, error)public static ContainerRegistry Get(string name, Input<string> id, ContainerRegistryState? state, CustomResourceOptions? opts = null)public static ContainerRegistry get(String name, Output<String> id, ContainerRegistryState state, CustomResourceOptions options)resources:  _:    type: qovery:ContainerRegistry    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Config
ediri.Qovery. Inputs. Container Registry Config 
- Configuration needed to authenticate the container registry.
- Description string
- Description of the container registry.
- Kind string
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- Name string
- Name of the container registry.
- OrganizationId string
- Id of the organization.
- Url string
- URL of the container registry.
- Config
ContainerRegistry Config Args 
- Configuration needed to authenticate the container registry.
- Description string
- Description of the container registry.
- Kind string
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- Name string
- Name of the container registry.
- OrganizationId string
- Id of the organization.
- Url string
- URL of the container registry.
- config
ContainerRegistry Config 
- Configuration needed to authenticate the container registry.
- description String
- Description of the container registry.
- kind String
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- name String
- Name of the container registry.
- organizationId String
- Id of the organization.
- url String
- URL of the container registry.
- config
ContainerRegistry Config 
- Configuration needed to authenticate the container registry.
- description string
- Description of the container registry.
- kind string
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- name string
- Name of the container registry.
- organizationId string
- Id of the organization.
- url string
- URL of the container registry.
- config
ContainerRegistry Config Args 
- Configuration needed to authenticate the container registry.
- description str
- Description of the container registry.
- kind str
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- name str
- Name of the container registry.
- organization_id str
- Id of the organization.
- url str
- URL of the container registry.
- config Property Map
- Configuration needed to authenticate the container registry.
- description String
- Description of the container registry.
- kind String
- Kind of the container registry. - Can be: DOCKER_HUB,DOCR,ECR,GCP_ARTIFACT_REGISTRY,GENERIC_CR,GITHUB_CR,GITLAB_CR,PUBLIC_ECR,SCALEWAY_CR.
- name String
- Name of the container registry.
- organizationId String
- Id of the organization.
- url String
- URL of the container registry.
Supporting Types
ContainerRegistryConfig, ContainerRegistryConfigArgs      
- AccessKey stringId 
- Required if kind is ECRorPUBLIC_ECR.
- Password string
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- Region string
- Required if kind is ECRorSCALEWAY_CR.
- ScalewayAccess stringKey 
- Required if kind is SCALEWAY_CR.
- ScalewaySecret stringKey 
- Required if kind is SCALEWAY_CR.
- SecretAccess stringKey 
- Required if kind is ECRorPUBLIC_ECR.
- Username string
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- AccessKey stringId 
- Required if kind is ECRorPUBLIC_ECR.
- Password string
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- Region string
- Required if kind is ECRorSCALEWAY_CR.
- ScalewayAccess stringKey 
- Required if kind is SCALEWAY_CR.
- ScalewaySecret stringKey 
- Required if kind is SCALEWAY_CR.
- SecretAccess stringKey 
- Required if kind is ECRorPUBLIC_ECR.
- Username string
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- accessKey StringId 
- Required if kind is ECRorPUBLIC_ECR.
- password String
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- region String
- Required if kind is ECRorSCALEWAY_CR.
- scalewayAccess StringKey 
- Required if kind is SCALEWAY_CR.
- scalewaySecret StringKey 
- Required if kind is SCALEWAY_CR.
- secretAccess StringKey 
- Required if kind is ECRorPUBLIC_ECR.
- username String
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- accessKey stringId 
- Required if kind is ECRorPUBLIC_ECR.
- password string
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- region string
- Required if kind is ECRorSCALEWAY_CR.
- scalewayAccess stringKey 
- Required if kind is SCALEWAY_CR.
- scalewaySecret stringKey 
- Required if kind is SCALEWAY_CR.
- secretAccess stringKey 
- Required if kind is ECRorPUBLIC_ECR.
- username string
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- access_key_ strid 
- Required if kind is ECRorPUBLIC_ECR.
- password str
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- region str
- Required if kind is ECRorSCALEWAY_CR.
- scaleway_access_ strkey 
- Required if kind is SCALEWAY_CR.
- scaleway_secret_ strkey 
- Required if kind is SCALEWAY_CR.
- secret_access_ strkey 
- Required if kind is ECRorPUBLIC_ECR.
- username str
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- accessKey StringId 
- Required if kind is ECRorPUBLIC_ECR.
- password String
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
- region String
- Required if kind is ECRorSCALEWAY_CR.
- scalewayAccess StringKey 
- Required if kind is SCALEWAY_CR.
- scalewaySecret StringKey 
- Required if kind is SCALEWAY_CR.
- secretAccess StringKey 
- Required if kind is ECRorPUBLIC_ECR.
- username String
- Required if kinds are DOCKER_HUB,GITHUB_CR,GITLABCR,GENERIC_CR`.
Import
$ pulumi import qovery:index/containerRegistry:ContainerRegistry my_container_registry "<organization_id>,<container_registry_id>"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- qovery dirien/pulumi-qovery
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the qoveryTerraform Provider.