1. Packages
  2. Scaleway
  3. API Docs
  4. Container
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

scaleway.Container

Explore with Pulumi AI

scaleway logo
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

    Creates and manages Scaleway Container.

    For more information consult the documentation.

    For more details about the limitation check containers-limitations.

    You can check also our containers guide.

    Protocols

    The supported protocols are:

    • h2c: HTTP/2 over TCP.
    • http1: Hypertext Transfer Protocol.

    Important: For details about the protocols check this

    Privacy

    By default, creating a container will make it public, meaning that anybody knowing the endpoint could execute it. A container can be made private with the privacy parameter.

    Please check our authentication section

    Memory and vCPUs configuration

    The vCPU represents a portion or share of the underlying, physical CPU that is assigned to a particular virtual machine (VM).

    You may decide how much computing resources to allocate to each container. The memory_limit (in MB) must correspond with the right amount of vCPU.

    Important: The right choice for your container’s resources is very important, as you will be billed based on compute usage over time and the number of Containers executions.

    Please check our price section for more details.

    Memory (in MB)vCPU
    12870m
    256140m
    512280m
    1024560m

    Note: 560mCPU accounts roughly for half of one CPU power of a Scaleway General Purpose instance

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var mainContainerNamespace = new Scaleway.ContainerNamespace("mainContainerNamespace", new()
        {
            Description = "test container",
        });
    
        var mainContainer = new Scaleway.Container("mainContainer", new()
        {
            Description = "environment variables test",
            NamespaceId = mainContainerNamespace.Id,
            RegistryImage = mainContainerNamespace.RegistryEndpoint.Apply(registryEndpoint => $"{registryEndpoint}/alpine:test"),
            Port = 9997,
            CpuLimit = 140,
            MemoryLimit = 256,
            MinScale = 3,
            MaxScale = 5,
            Timeout = 600,
            MaxConcurrency = 80,
            Privacy = "private",
            Protocol = "h2c",
            Deploy = true,
            EnvironmentVariables = 
            {
                { "foo", "var" },
            },
            SecretEnvironmentVariables = 
            {
                { "key", "secret" },
            },
        });
    
    });
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		mainContainerNamespace, err := scaleway.NewContainerNamespace(ctx, "mainContainerNamespace", &scaleway.ContainerNamespaceArgs{
    			Description: pulumi.String("test container"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewContainer(ctx, "mainContainer", &scaleway.ContainerArgs{
    			Description: pulumi.String("environment variables test"),
    			NamespaceId: mainContainerNamespace.ID(),
    			RegistryImage: mainContainerNamespace.RegistryEndpoint.ApplyT(func(registryEndpoint string) (string, error) {
    				return fmt.Sprintf("%v/alpine:test", registryEndpoint), nil
    			}).(pulumi.StringOutput),
    			Port:           pulumi.Int(9997),
    			CpuLimit:       pulumi.Int(140),
    			MemoryLimit:    pulumi.Int(256),
    			MinScale:       pulumi.Int(3),
    			MaxScale:       pulumi.Int(5),
    			Timeout:        pulumi.Int(600),
    			MaxConcurrency: pulumi.Int(80),
    			Privacy:        pulumi.String("private"),
    			Protocol:       pulumi.String("h2c"),
    			Deploy:         pulumi.Bool(true),
    			EnvironmentVariables: pulumi.StringMap{
    				"foo": pulumi.String("var"),
    			},
    			SecretEnvironmentVariables: pulumi.StringMap{
    				"key": pulumi.String("secret"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ContainerNamespace;
    import com.pulumi.scaleway.ContainerNamespaceArgs;
    import com.pulumi.scaleway.Container;
    import com.pulumi.scaleway.ContainerArgs;
    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 mainContainerNamespace = new ContainerNamespace("mainContainerNamespace", ContainerNamespaceArgs.builder()        
                .description("test container")
                .build());
    
            var mainContainer = new Container("mainContainer", ContainerArgs.builder()        
                .description("environment variables test")
                .namespaceId(mainContainerNamespace.id())
                .registryImage(mainContainerNamespace.registryEndpoint().applyValue(registryEndpoint -> String.format("%s/alpine:test", registryEndpoint)))
                .port(9997)
                .cpuLimit(140)
                .memoryLimit(256)
                .minScale(3)
                .maxScale(5)
                .timeout(600)
                .maxConcurrency(80)
                .privacy("private")
                .protocol("h2c")
                .deploy(true)
                .environmentVariables(Map.of("foo", "var"))
                .secretEnvironmentVariables(Map.of("key", "secret"))
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_scaleway as scaleway
    
    main_container_namespace = scaleway.ContainerNamespace("mainContainerNamespace", description="test container")
    main_container = scaleway.Container("mainContainer",
        description="environment variables test",
        namespace_id=main_container_namespace.id,
        registry_image=main_container_namespace.registry_endpoint.apply(lambda registry_endpoint: f"{registry_endpoint}/alpine:test"),
        port=9997,
        cpu_limit=140,
        memory_limit=256,
        min_scale=3,
        max_scale=5,
        timeout=600,
        max_concurrency=80,
        privacy="private",
        protocol="h2c",
        deploy=True,
        environment_variables={
            "foo": "var",
        },
        secret_environment_variables={
            "key": "secret",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@lbrlabs/pulumi-scaleway";
    
    const mainContainerNamespace = new scaleway.ContainerNamespace("mainContainerNamespace", {description: "test container"});
    const mainContainer = new scaleway.Container("mainContainer", {
        description: "environment variables test",
        namespaceId: mainContainerNamespace.id,
        registryImage: pulumi.interpolate`${mainContainerNamespace.registryEndpoint}/alpine:test`,
        port: 9997,
        cpuLimit: 140,
        memoryLimit: 256,
        minScale: 3,
        maxScale: 5,
        timeout: 600,
        maxConcurrency: 80,
        privacy: "private",
        protocol: "h2c",
        deploy: true,
        environmentVariables: {
            foo: "var",
        },
        secretEnvironmentVariables: {
            key: "secret",
        },
    });
    
    resources:
      mainContainerNamespace:
        type: scaleway:ContainerNamespace
        properties:
          description: test container
      mainContainer:
        type: scaleway:Container
        properties:
          description: environment variables test
          namespaceId: ${mainContainerNamespace.id}
          registryImage: ${mainContainerNamespace.registryEndpoint}/alpine:test
          port: 9997
          cpuLimit: 140
          memoryLimit: 256
          minScale: 3
          maxScale: 5
          timeout: 600
          maxConcurrency: 80
          privacy: private
          protocol: h2c
          deploy: true
          environmentVariables:
            foo: var
          secretEnvironmentVariables:
            key: secret
    

    Create Container Resource

    new Container(name: string, args: ContainerArgs, opts?: CustomResourceOptions);
    @overload
    def Container(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  cpu_limit: Optional[int] = None,
                  deploy: Optional[bool] = None,
                  description: Optional[str] = None,
                  environment_variables: Optional[Mapping[str, str]] = None,
                  http_option: Optional[str] = None,
                  max_concurrency: Optional[int] = None,
                  max_scale: Optional[int] = None,
                  memory_limit: Optional[int] = None,
                  min_scale: Optional[int] = None,
                  name: Optional[str] = None,
                  namespace_id: Optional[str] = None,
                  port: Optional[int] = None,
                  privacy: Optional[str] = None,
                  protocol: Optional[str] = None,
                  registry_image: Optional[str] = None,
                  registry_sha256: Optional[str] = None,
                  secret_environment_variables: Optional[Mapping[str, str]] = None,
                  status: Optional[str] = None,
                  timeout: Optional[int] = None)
    @overload
    def Container(resource_name: str,
                  args: ContainerArgs,
                  opts: Optional[ResourceOptions] = None)
    func NewContainer(ctx *Context, name string, args ContainerArgs, opts ...ResourceOption) (*Container, error)
    public Container(string name, ContainerArgs args, CustomResourceOptions? opts = null)
    public Container(String name, ContainerArgs args)
    public Container(String name, ContainerArgs args, CustomResourceOptions options)
    
    type: scaleway:Container
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ContainerArgs
    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 ContainerArgs
    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 ContainerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Container Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Container resource accepts the following input properties:

    NamespaceId string

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    CpuLimit int

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    Deploy bool

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    Description string

    The description of the container.

    EnvironmentVariables Dictionary<string, string>

    The environment variables of the container.

    HttpOption string

    HTTP traffic configuration

    MaxConcurrency int

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    MaxScale int

    The maximum of number of instances this container can scale to. Default to 20.

    MemoryLimit int

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    MinScale int

    The minimum of running container instances continuously. Defaults to 0.

    Name string

    The unique name of the container name.

    Port int

    The port to expose the container. Defaults to 8080.

    Privacy string

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    Protocol string

    The communication protocol http1 or h2c. Defaults to http1.

    RegistryImage string

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    RegistrySha256 string

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    SecretEnvironmentVariables Dictionary<string, string>

    The secret environment variables of the container.

    Status string

    The container status.

    Timeout int

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    NamespaceId string

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    CpuLimit int

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    Deploy bool

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    Description string

    The description of the container.

    EnvironmentVariables map[string]string

    The environment variables of the container.

    HttpOption string

    HTTP traffic configuration

    MaxConcurrency int

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    MaxScale int

    The maximum of number of instances this container can scale to. Default to 20.

    MemoryLimit int

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    MinScale int

    The minimum of running container instances continuously. Defaults to 0.

    Name string

    The unique name of the container name.

    Port int

    The port to expose the container. Defaults to 8080.

    Privacy string

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    Protocol string

    The communication protocol http1 or h2c. Defaults to http1.

    RegistryImage string

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    RegistrySha256 string

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    SecretEnvironmentVariables map[string]string

    The secret environment variables of the container.

    Status string

    The container status.

    Timeout int

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    namespaceId String

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    cpuLimit Integer

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    deploy Boolean

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    description String

    The description of the container.

    environmentVariables Map<String,String>

    The environment variables of the container.

    httpOption String

    HTTP traffic configuration

    maxConcurrency Integer

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    maxScale Integer

    The maximum of number of instances this container can scale to. Default to 20.

    memoryLimit Integer

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    minScale Integer

    The minimum of running container instances continuously. Defaults to 0.

    name String

    The unique name of the container name.

    port Integer

    The port to expose the container. Defaults to 8080.

    privacy String

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    protocol String

    The communication protocol http1 or h2c. Defaults to http1.

    registryImage String

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    registrySha256 String

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    secretEnvironmentVariables Map<String,String>

    The secret environment variables of the container.

    status String

    The container status.

    timeout Integer

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    namespaceId string

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    cpuLimit number

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    deploy boolean

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    description string

    The description of the container.

    environmentVariables {[key: string]: string}

    The environment variables of the container.

    httpOption string

    HTTP traffic configuration

    maxConcurrency number

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    maxScale number

    The maximum of number of instances this container can scale to. Default to 20.

    memoryLimit number

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    minScale number

    The minimum of running container instances continuously. Defaults to 0.

    name string

    The unique name of the container name.

    port number

    The port to expose the container. Defaults to 8080.

    privacy string

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    protocol string

    The communication protocol http1 or h2c. Defaults to http1.

    registryImage string

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    registrySha256 string

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    secretEnvironmentVariables {[key: string]: string}

    The secret environment variables of the container.

    status string

    The container status.

    timeout number

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    namespace_id str

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    cpu_limit int

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    deploy bool

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    description str

    The description of the container.

    environment_variables Mapping[str, str]

    The environment variables of the container.

    http_option str

    HTTP traffic configuration

    max_concurrency int

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    max_scale int

    The maximum of number of instances this container can scale to. Default to 20.

    memory_limit int

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    min_scale int

    The minimum of running container instances continuously. Defaults to 0.

    name str

    The unique name of the container name.

    port int

    The port to expose the container. Defaults to 8080.

    privacy str

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    protocol str

    The communication protocol http1 or h2c. Defaults to http1.

    registry_image str

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    registry_sha256 str

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    secret_environment_variables Mapping[str, str]

    The secret environment variables of the container.

    status str

    The container status.

    timeout int

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    namespaceId String

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    cpuLimit Number

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    deploy Boolean

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    description String

    The description of the container.

    environmentVariables Map<String>

    The environment variables of the container.

    httpOption String

    HTTP traffic configuration

    maxConcurrency Number

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    maxScale Number

    The maximum of number of instances this container can scale to. Default to 20.

    memoryLimit Number

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    minScale Number

    The minimum of running container instances continuously. Defaults to 0.

    name String

    The unique name of the container name.

    port Number

    The port to expose the container. Defaults to 8080.

    privacy String

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    protocol String

    The communication protocol http1 or h2c. Defaults to http1.

    registryImage String

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    registrySha256 String

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    secretEnvironmentVariables Map<String>

    The secret environment variables of the container.

    status String

    The container status.

    timeout Number

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Container resource produces the following output properties:

    CronStatus string

    The cron status of the container.

    DomainName string

    The native domain name of the container

    ErrorMessage string

    The error message of the container.

    Id string

    The provider-assigned unique ID for this managed resource.

    Region string

    (Defaults to provider region) The region in which the container was created.

    CronStatus string

    The cron status of the container.

    DomainName string

    The native domain name of the container

    ErrorMessage string

    The error message of the container.

    Id string

    The provider-assigned unique ID for this managed resource.

    Region string

    (Defaults to provider region) The region in which the container was created.

    cronStatus String

    The cron status of the container.

    domainName String

    The native domain name of the container

    errorMessage String

    The error message of the container.

    id String

    The provider-assigned unique ID for this managed resource.

    region String

    (Defaults to provider region) The region in which the container was created.

    cronStatus string

    The cron status of the container.

    domainName string

    The native domain name of the container

    errorMessage string

    The error message of the container.

    id string

    The provider-assigned unique ID for this managed resource.

    region string

    (Defaults to provider region) The region in which the container was created.

    cron_status str

    The cron status of the container.

    domain_name str

    The native domain name of the container

    error_message str

    The error message of the container.

    id str

    The provider-assigned unique ID for this managed resource.

    region str

    (Defaults to provider region) The region in which the container was created.

    cronStatus String

    The cron status of the container.

    domainName String

    The native domain name of the container

    errorMessage String

    The error message of the container.

    id String

    The provider-assigned unique ID for this managed resource.

    region String

    (Defaults to provider region) The region in which the container was created.

    Look up Existing Container Resource

    Get an existing Container 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?: ContainerState, opts?: CustomResourceOptions): Container
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cpu_limit: Optional[int] = None,
            cron_status: Optional[str] = None,
            deploy: Optional[bool] = None,
            description: Optional[str] = None,
            domain_name: Optional[str] = None,
            environment_variables: Optional[Mapping[str, str]] = None,
            error_message: Optional[str] = None,
            http_option: Optional[str] = None,
            max_concurrency: Optional[int] = None,
            max_scale: Optional[int] = None,
            memory_limit: Optional[int] = None,
            min_scale: Optional[int] = None,
            name: Optional[str] = None,
            namespace_id: Optional[str] = None,
            port: Optional[int] = None,
            privacy: Optional[str] = None,
            protocol: Optional[str] = None,
            region: Optional[str] = None,
            registry_image: Optional[str] = None,
            registry_sha256: Optional[str] = None,
            secret_environment_variables: Optional[Mapping[str, str]] = None,
            status: Optional[str] = None,
            timeout: Optional[int] = None) -> Container
    func GetContainer(ctx *Context, name string, id IDInput, state *ContainerState, opts ...ResourceOption) (*Container, error)
    public static Container Get(string name, Input<string> id, ContainerState? state, CustomResourceOptions? opts = null)
    public static Container get(String name, Output<String> id, ContainerState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    CpuLimit int

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    CronStatus string

    The cron status of the container.

    Deploy bool

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    Description string

    The description of the container.

    DomainName string

    The native domain name of the container

    EnvironmentVariables Dictionary<string, string>

    The environment variables of the container.

    ErrorMessage string

    The error message of the container.

    HttpOption string

    HTTP traffic configuration

    MaxConcurrency int

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    MaxScale int

    The maximum of number of instances this container can scale to. Default to 20.

    MemoryLimit int

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    MinScale int

    The minimum of running container instances continuously. Defaults to 0.

    Name string

    The unique name of the container name.

    NamespaceId string

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    Port int

    The port to expose the container. Defaults to 8080.

    Privacy string

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    Protocol string

    The communication protocol http1 or h2c. Defaults to http1.

    Region string

    (Defaults to provider region) The region in which the container was created.

    RegistryImage string

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    RegistrySha256 string

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    SecretEnvironmentVariables Dictionary<string, string>

    The secret environment variables of the container.

    Status string

    The container status.

    Timeout int

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    CpuLimit int

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    CronStatus string

    The cron status of the container.

    Deploy bool

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    Description string

    The description of the container.

    DomainName string

    The native domain name of the container

    EnvironmentVariables map[string]string

    The environment variables of the container.

    ErrorMessage string

    The error message of the container.

    HttpOption string

    HTTP traffic configuration

    MaxConcurrency int

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    MaxScale int

    The maximum of number of instances this container can scale to. Default to 20.

    MemoryLimit int

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    MinScale int

    The minimum of running container instances continuously. Defaults to 0.

    Name string

    The unique name of the container name.

    NamespaceId string

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    Port int

    The port to expose the container. Defaults to 8080.

    Privacy string

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    Protocol string

    The communication protocol http1 or h2c. Defaults to http1.

    Region string

    (Defaults to provider region) The region in which the container was created.

    RegistryImage string

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    RegistrySha256 string

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    SecretEnvironmentVariables map[string]string

    The secret environment variables of the container.

    Status string

    The container status.

    Timeout int

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    cpuLimit Integer

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    cronStatus String

    The cron status of the container.

    deploy Boolean

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    description String

    The description of the container.

    domainName String

    The native domain name of the container

    environmentVariables Map<String,String>

    The environment variables of the container.

    errorMessage String

    The error message of the container.

    httpOption String

    HTTP traffic configuration

    maxConcurrency Integer

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    maxScale Integer

    The maximum of number of instances this container can scale to. Default to 20.

    memoryLimit Integer

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    minScale Integer

    The minimum of running container instances continuously. Defaults to 0.

    name String

    The unique name of the container name.

    namespaceId String

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    port Integer

    The port to expose the container. Defaults to 8080.

    privacy String

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    protocol String

    The communication protocol http1 or h2c. Defaults to http1.

    region String

    (Defaults to provider region) The region in which the container was created.

    registryImage String

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    registrySha256 String

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    secretEnvironmentVariables Map<String,String>

    The secret environment variables of the container.

    status String

    The container status.

    timeout Integer

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    cpuLimit number

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    cronStatus string

    The cron status of the container.

    deploy boolean

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    description string

    The description of the container.

    domainName string

    The native domain name of the container

    environmentVariables {[key: string]: string}

    The environment variables of the container.

    errorMessage string

    The error message of the container.

    httpOption string

    HTTP traffic configuration

    maxConcurrency number

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    maxScale number

    The maximum of number of instances this container can scale to. Default to 20.

    memoryLimit number

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    minScale number

    The minimum of running container instances continuously. Defaults to 0.

    name string

    The unique name of the container name.

    namespaceId string

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    port number

    The port to expose the container. Defaults to 8080.

    privacy string

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    protocol string

    The communication protocol http1 or h2c. Defaults to http1.

    region string

    (Defaults to provider region) The region in which the container was created.

    registryImage string

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    registrySha256 string

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    secretEnvironmentVariables {[key: string]: string}

    The secret environment variables of the container.

    status string

    The container status.

    timeout number

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    cpu_limit int

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    cron_status str

    The cron status of the container.

    deploy bool

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    description str

    The description of the container.

    domain_name str

    The native domain name of the container

    environment_variables Mapping[str, str]

    The environment variables of the container.

    error_message str

    The error message of the container.

    http_option str

    HTTP traffic configuration

    max_concurrency int

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    max_scale int

    The maximum of number of instances this container can scale to. Default to 20.

    memory_limit int

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    min_scale int

    The minimum of running container instances continuously. Defaults to 0.

    name str

    The unique name of the container name.

    namespace_id str

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    port int

    The port to expose the container. Defaults to 8080.

    privacy str

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    protocol str

    The communication protocol http1 or h2c. Defaults to http1.

    region str

    (Defaults to provider region) The region in which the container was created.

    registry_image str

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    registry_sha256 str

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    secret_environment_variables Mapping[str, str]

    The secret environment variables of the container.

    status str

    The container status.

    timeout int

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    cpuLimit Number

    The amount of vCPU computing resources to allocate to each container. Defaults to 140.

    cronStatus String

    The cron status of the container.

    deploy Boolean

    Boolean controlling whether the container is on a production environment.

    Note that if you want to use your own configuration, you must consult our configuration restrictions section.

    description String

    The description of the container.

    domainName String

    The native domain name of the container

    environmentVariables Map<String>

    The environment variables of the container.

    errorMessage String

    The error message of the container.

    httpOption String

    HTTP traffic configuration

    maxConcurrency Number

    The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

    maxScale Number

    The maximum of number of instances this container can scale to. Default to 20.

    memoryLimit Number

    The memory computing resources in MB to allocate to each container. Defaults to 256.

    minScale Number

    The minimum of running container instances continuously. Defaults to 0.

    name String

    The unique name of the container name.

    namespaceId String

    The container namespace ID of the container.

    Important Updates to name will recreate the container.

    The following arguments are optional:

    port Number

    The port to expose the container. Defaults to 8080.

    privacy String

    The privacy type define the way to authenticate to your container. Please check our dedicated section.

    protocol String

    The communication protocol http1 or h2c. Defaults to http1.

    region String

    (Defaults to provider region) The region in which the container was created.

    registryImage String

    The registry image address. e.g: "rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE".

    registrySha256 String

    The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string

    secretEnvironmentVariables Map<String>

    The secret environment variables of the container.

    status String

    The container status.

    timeout Number

    The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

    Import

    Container can be imported using the {region}/{id}, e.g. bash

     $ pulumi import scaleway:index/container:Container main fr-par/11111111-1111-1111-1111-111111111111
    

    Package Details

    Repository
    scaleway lbrlabs/pulumi-scaleway
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the scaleway Terraform Provider.

    scaleway logo
    Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs