1. Packages
  2. Scaleway
  3. API Docs
  4. Container
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.Container

Explore with Pulumi AI

Deprecated: scaleway.index/container.Container has been deprecated in favor of scaleway.containers/container.Container

The scaleway.containers.Container resource allows you to create and manage Serverless Containers.

Refer to the Serverless Containers product documentation and API documentation for more information.

For more information on the limitations of Serverless Containers, refer to the dedicated documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.containers.Namespace("main", {
    name: "my-ns-test",
    description: "test container",
});
const mainContainer = new scaleway.containers.Container("main", {
    name: "my-container-02",
    description: "environment variables test",
    namespaceId: main.id,
    registryImage: pulumi.interpolate`${main.registryEndpoint}/alpine:test`,
    port: 9997,
    cpuLimit: 140,
    memoryLimit: 256,
    minScale: 3,
    maxScale: 5,
    timeout: 600,
    maxConcurrency: 80,
    privacy: "private",
    protocol: "http1",
    deploy: true,
    environmentVariables: {
        foo: "var",
    },
    secretEnvironmentVariables: {
        key: "secret",
    },
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.containers.Namespace("main",
    name="my-ns-test",
    description="test container")
main_container = scaleway.containers.Container("main",
    name="my-container-02",
    description="environment variables test",
    namespace_id=main.id,
    registry_image=main.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="http1",
    deploy=True,
    environment_variables={
        "foo": "var",
    },
    secret_environment_variables={
        "key": "secret",
    })
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/containers"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := containers.NewNamespace(ctx, "main", &containers.NamespaceArgs{
			Name:        pulumi.String("my-ns-test"),
			Description: pulumi.String("test container"),
		})
		if err != nil {
			return err
		}
		_, err = containers.NewContainer(ctx, "main", &containers.ContainerArgs{
			Name:        pulumi.String("my-container-02"),
			Description: pulumi.String("environment variables test"),
			NamespaceId: main.ID(),
			RegistryImage: main.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("http1"),
			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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Containers.Namespace("main", new()
    {
        Name = "my-ns-test",
        Description = "test container",
    });

    var mainContainer = new Scaleway.Containers.Container("main", new()
    {
        Name = "my-container-02",
        Description = "environment variables test",
        NamespaceId = main.Id,
        RegistryImage = main.RegistryEndpoint.Apply(registryEndpoint => $"{registryEndpoint}/alpine:test"),
        Port = 9997,
        CpuLimit = 140,
        MemoryLimit = 256,
        MinScale = 3,
        MaxScale = 5,
        Timeout = 600,
        MaxConcurrency = 80,
        Privacy = "private",
        Protocol = "http1",
        Deploy = true,
        EnvironmentVariables = 
        {
            { "foo", "var" },
        },
        SecretEnvironmentVariables = 
        {
            { "key", "secret" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.containers.Namespace;
import com.pulumi.scaleway.containers.NamespaceArgs;
import com.pulumi.scaleway.containers.Container;
import com.pulumi.scaleway.containers.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 main = new Namespace("main", NamespaceArgs.builder()
            .name("my-ns-test")
            .description("test container")
            .build());

        var mainContainer = new Container("mainContainer", ContainerArgs.builder()
            .name("my-container-02")
            .description("environment variables test")
            .namespaceId(main.id())
            .registryImage(main.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("http1")
            .deploy(true)
            .environmentVariables(Map.of("foo", "var"))
            .secretEnvironmentVariables(Map.of("key", "secret"))
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:containers:Namespace
    properties:
      name: my-ns-test
      description: test container
  mainContainer:
    type: scaleway:containers:Container
    name: main
    properties:
      name: my-container-02
      description: environment variables test
      namespaceId: ${main.id}
      registryImage: ${main.registryEndpoint}/alpine:test
      port: 9997
      cpuLimit: 140
      memoryLimit: 256
      minScale: 3
      maxScale: 5
      timeout: 600
      maxConcurrency: 80
      privacy: private
      protocol: http1
      deploy: true
      environmentVariables:
        foo: var
      secretEnvironmentVariables:
        key: secret
Copy

Protocols

The following protocols are supported:

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

Important: Refer to the official Apache documentation for more information.

Privacy

By default, creating a container will make it public, meaning that anybody knowing the endpoint can execute it.

A container can be made private with the privacy parameter.

Refer to the technical information for more information on container authentication.

Memory and vCPUs configuration

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

You can determine the computing resources to allocate to each container.

The memory_limit (in MB) must correspond with the right amount of vCPU. Refer to the table below to determine the right memory/vCPU combination.

Memory (in MB)vCPU
12870m
256140m
512280m
1024560m
20481120
30721680
40962240

~>Important: Make sure to select the right resources, as you will be billed based on compute usage over time and the number of Containers executions. Refer to the Serverless Containers pricing for more information.

Health check configuration

Custom health checks can be configured on the container.

It’s possible to specify the HTTP path that the probe will listen to and the number of failures before considering the container as unhealthy. During a deployment, if a newly created container fails to pass the health check, the deployment is aborted. As a result, lowering this value can help to reduce the time it takes to detect a failed deployment. The period between health checks is also configurable.

Example:

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.containers.Container("main", {
    name: "my-container-02",
    namespaceId: mainScalewayContainerNamespace.id,
    healthChecks: [{
        https: [{
            path: "/ping",
        }],
        failureThreshold: 40,
        interval: "3s",
    }],
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.containers.Container("main",
    name="my-container-02",
    namespace_id=main_scaleway_container_namespace["id"],
    health_checks=[{
        "https": [{
            "path": "/ping",
        }],
        "failure_threshold": 40,
        "interval": "3s",
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/containers"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containers.NewContainer(ctx, "main", &containers.ContainerArgs{
			Name:        pulumi.String("my-container-02"),
			NamespaceId: pulumi.Any(mainScalewayContainerNamespace.Id),
			HealthChecks: containers.ContainerHealthCheckArray{
				&containers.ContainerHealthCheckArgs{
					Https: containers.ContainerHealthCheckHttpArray{
						&containers.ContainerHealthCheckHttpArgs{
							Path: pulumi.String("/ping"),
						},
					},
					FailureThreshold: pulumi.Int(40),
					Interval:         pulumi.String("3s"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Containers.Container("main", new()
    {
        Name = "my-container-02",
        NamespaceId = mainScalewayContainerNamespace.Id,
        HealthChecks = new[]
        {
            new Scaleway.Containers.Inputs.ContainerHealthCheckArgs
            {
                Https = new[]
                {
                    new Scaleway.Containers.Inputs.ContainerHealthCheckHttpArgs
                    {
                        Path = "/ping",
                    },
                },
                FailureThreshold = 40,
                Interval = "3s",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.containers.Container;
import com.pulumi.scaleway.containers.ContainerArgs;
import com.pulumi.scaleway.containers.inputs.ContainerHealthCheckArgs;
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 main = new Container("main", ContainerArgs.builder()
            .name("my-container-02")
            .namespaceId(mainScalewayContainerNamespace.id())
            .healthChecks(ContainerHealthCheckArgs.builder()
                .https(ContainerHealthCheckHttpArgs.builder()
                    .path("/ping")
                    .build())
                .failureThreshold(40)
                .interval("3s")
                .build())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:containers:Container
    properties:
      name: my-container-02
      namespaceId: ${mainScalewayContainerNamespace.id}
      healthChecks:
        - https:
            - path: /ping
          failureThreshold: 40
          interval: 3s
Copy

~>Important: Another probe type can be set to TCP with the API, but currently the SDK has not been updated with this parameter. This is why the only probe that can be used here is the HTTP probe. Refer to the Serverless Containers pricing for more information.

Scaling option configuration

Scaling option block configuration allows you to choose which parameter will scale up/down containers. Options are number of concurrent requests, CPU or memory usage. It replaces current max_concurrency that has been deprecated.

Example:

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.containers.Container("main", {
    name: "my-container-02",
    namespaceId: mainScalewayContainerNamespace.id,
    scalingOptions: [{
        concurrentRequestsThreshold: 15,
    }],
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.containers.Container("main",
    name="my-container-02",
    namespace_id=main_scaleway_container_namespace["id"],
    scaling_options=[{
        "concurrent_requests_threshold": 15,
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/containers"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containers.NewContainer(ctx, "main", &containers.ContainerArgs{
			Name:        pulumi.String("my-container-02"),
			NamespaceId: pulumi.Any(mainScalewayContainerNamespace.Id),
			ScalingOptions: containers.ContainerScalingOptionArray{
				&containers.ContainerScalingOptionArgs{
					ConcurrentRequestsThreshold: pulumi.Int(15),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Containers.Container("main", new()
    {
        Name = "my-container-02",
        NamespaceId = mainScalewayContainerNamespace.Id,
        ScalingOptions = new[]
        {
            new Scaleway.Containers.Inputs.ContainerScalingOptionArgs
            {
                ConcurrentRequestsThreshold = 15,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.containers.Container;
import com.pulumi.scaleway.containers.ContainerArgs;
import com.pulumi.scaleway.containers.inputs.ContainerScalingOptionArgs;
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 main = new Container("main", ContainerArgs.builder()
            .name("my-container-02")
            .namespaceId(mainScalewayContainerNamespace.id())
            .scalingOptions(ContainerScalingOptionArgs.builder()
                .concurrentRequestsThreshold(15)
                .build())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:containers:Container
    properties:
      name: my-container-02
      namespaceId: ${mainScalewayContainerNamespace.id}
      scalingOptions:
        - concurrentRequestsThreshold: 15
Copy

~>Important: A maximum of one of these parameters may be set. Also, when cpu_usage_threshold or memory_usage_threshold are used, min_scale can’t be set to 0. Refer to the API Reference for more information.

Create Container Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Container(name: string, args: ContainerArgs, opts?: CustomResourceOptions);
@overload
def Container(resource_name: str,
              args: ContainerArgs,
              opts: Optional[ResourceOptions] = None)

@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,
              health_checks: Optional[Sequence[ContainerHealthCheckArgs]] = None,
              http_option: Optional[str] = None,
              local_storage_limit: Optional[int] = 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,
              sandbox: Optional[str] = None,
              scaling_options: Optional[Sequence[ContainerScalingOptionArgs]] = None,
              secret_environment_variables: Optional[Mapping[str, str]] = None,
              status: Optional[str] = None,
              timeout: Optional[int] = 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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ContainerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ContainerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ContainerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Container resource accepts the following input properties:

NamespaceId This property is required. string

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

CpuLimit int
The amount of vCPU computing resources to allocate to each container.
Deploy bool
Boolean indicating whether the container is in a production environment.
Description string
The description of the container.
EnvironmentVariables Dictionary<string, string>
The environment variables of the container.
HealthChecks List<Pulumiverse.Scaleway.Inputs.ContainerHealthCheck>
Health check configuration block of the container.
HttpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
LocalStorageLimit int

Local storage limit of the container (in MB)

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

MaxConcurrency int
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

MaxScale int
The maximum number of instances this container can scale to.
MemoryLimit int
The memory resources in MB to allocate to each container.
MinScale int
The minimum number of container instances running continuously.
Name Changes to this property will trigger replacement. string
The unique name of the container name.
Port int
The port to expose the container.
Privacy string
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
Protocol string
The communication protocol http1 or h2c. Defaults to http1.
Region Changes to this property will trigger replacement. 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.
Sandbox string
Execution environment of the container.
ScalingOptions List<Pulumiverse.Scaleway.Inputs.ContainerScalingOption>
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
NamespaceId This property is required. string

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

CpuLimit int
The amount of vCPU computing resources to allocate to each container.
Deploy bool
Boolean indicating whether the container is in a production environment.
Description string
The description of the container.
EnvironmentVariables map[string]string
The environment variables of the container.
HealthChecks []ContainerHealthCheckArgs
Health check configuration block of the container.
HttpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
LocalStorageLimit int

Local storage limit of the container (in MB)

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

MaxConcurrency int
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

MaxScale int
The maximum number of instances this container can scale to.
MemoryLimit int
The memory resources in MB to allocate to each container.
MinScale int
The minimum number of container instances running continuously.
Name Changes to this property will trigger replacement. string
The unique name of the container name.
Port int
The port to expose the container.
Privacy string
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
Protocol string
The communication protocol http1 or h2c. Defaults to http1.
Region Changes to this property will trigger replacement. 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.
Sandbox string
Execution environment of the container.
ScalingOptions []ContainerScalingOptionArgs
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
namespaceId This property is required. String

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

cpuLimit Integer
The amount of vCPU computing resources to allocate to each container.
deploy Boolean
Boolean indicating whether the container is in a production environment.
description String
The description of the container.
environmentVariables Map<String,String>
The environment variables of the container.
healthChecks List<ContainerHealthCheck>
Health check configuration block of the container.
httpOption String
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
localStorageLimit Integer

Local storage limit of the container (in MB)

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

maxConcurrency Integer
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

maxScale Integer
The maximum number of instances this container can scale to.
memoryLimit Integer
The memory resources in MB to allocate to each container.
minScale Integer
The minimum number of container instances running continuously.
name Changes to this property will trigger replacement. String
The unique name of the container name.
port Integer
The port to expose the container.
privacy String
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
protocol String
The communication protocol http1 or h2c. Defaults to http1.
region Changes to this property will trigger replacement. 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.
sandbox String
Execution environment of the container.
scalingOptions List<ContainerScalingOption>
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
namespaceId This property is required. string

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

cpuLimit number
The amount of vCPU computing resources to allocate to each container.
deploy boolean
Boolean indicating whether the container is in a production environment.
description string
The description of the container.
environmentVariables {[key: string]: string}
The environment variables of the container.
healthChecks ContainerHealthCheck[]
Health check configuration block of the container.
httpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
localStorageLimit number

Local storage limit of the container (in MB)

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

maxConcurrency number
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

maxScale number
The maximum number of instances this container can scale to.
memoryLimit number
The memory resources in MB to allocate to each container.
minScale number
The minimum number of container instances running continuously.
name Changes to this property will trigger replacement. string
The unique name of the container name.
port number
The port to expose the container.
privacy string
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
protocol string
The communication protocol http1 or h2c. Defaults to http1.
region Changes to this property will trigger replacement. 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.
sandbox string
Execution environment of the container.
scalingOptions ContainerScalingOption[]
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
namespace_id This property is required. str

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

cpu_limit int
The amount of vCPU computing resources to allocate to each container.
deploy bool
Boolean indicating whether the container is in a production environment.
description str
The description of the container.
environment_variables Mapping[str, str]
The environment variables of the container.
health_checks Sequence[ContainerHealthCheckArgs]
Health check configuration block of the container.
http_option str
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
local_storage_limit int

Local storage limit of the container (in MB)

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

max_concurrency int
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

max_scale int
The maximum number of instances this container can scale to.
memory_limit int
The memory resources in MB to allocate to each container.
min_scale int
The minimum number of container instances running continuously.
name Changes to this property will trigger replacement. str
The unique name of the container name.
port int
The port to expose the container.
privacy str
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
protocol str
The communication protocol http1 or h2c. Defaults to http1.
region Changes to this property will trigger replacement. 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.
sandbox str
Execution environment of the container.
scaling_options Sequence[ContainerScalingOptionArgs]
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
namespaceId This property is required. String

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

cpuLimit Number
The amount of vCPU computing resources to allocate to each container.
deploy Boolean
Boolean indicating whether the container is in a production environment.
description String
The description of the container.
environmentVariables Map<String>
The environment variables of the container.
healthChecks List<Property Map>
Health check configuration block of the container.
httpOption String
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
localStorageLimit Number

Local storage limit of the container (in MB)

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

maxConcurrency Number
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

maxScale Number
The maximum number of instances this container can scale to.
memoryLimit Number
The memory resources in MB to allocate to each container.
minScale Number
The minimum number of container instances running continuously.
name Changes to this property will trigger replacement. String
The unique name of the container name.
port Number
The port to expose the container.
privacy String
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
protocol String
The communication protocol http1 or h2c. Defaults to http1.
region Changes to this property will trigger replacement. 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.
sandbox String
Execution environment of the container.
scalingOptions List<Property Map>
Configuration block used to decide when to scale up or down. Possible values:
secretEnvironmentVariables Map<String>
The secret environment variables of the container.
status String
The container status.
timeout Number
The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to 300 seconds.

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.
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.
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.
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.
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.
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.

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,
        health_checks: Optional[Sequence[ContainerHealthCheckArgs]] = None,
        http_option: Optional[str] = None,
        local_storage_limit: Optional[int] = 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,
        sandbox: Optional[str] = None,
        scaling_options: Optional[Sequence[ContainerScalingOptionArgs]] = 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)
resources:  _:    type: scaleway:Container    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
CronStatus string
The cron status of the container.
Deploy bool
Boolean indicating whether the container is in a production environment.
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.
HealthChecks List<Pulumiverse.Scaleway.Inputs.ContainerHealthCheck>
Health check configuration block of the container.
HttpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
LocalStorageLimit int

Local storage limit of the container (in MB)

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

MaxConcurrency int
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

MaxScale int
The maximum number of instances this container can scale to.
MemoryLimit int
The memory resources in MB to allocate to each container.
MinScale int
The minimum number of container instances running continuously.
Name Changes to this property will trigger replacement. string
The unique name of the container name.
NamespaceId string

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

Port int
The port to expose the container.
Privacy string
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
Protocol string
The communication protocol http1 or h2c. Defaults to http1.
Region Changes to this property will trigger replacement. 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.
Sandbox string
Execution environment of the container.
ScalingOptions List<Pulumiverse.Scaleway.Inputs.ContainerScalingOption>
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
CpuLimit int
The amount of vCPU computing resources to allocate to each container.
CronStatus string
The cron status of the container.
Deploy bool
Boolean indicating whether the container is in a production environment.
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.
HealthChecks []ContainerHealthCheckArgs
Health check configuration block of the container.
HttpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
LocalStorageLimit int

Local storage limit of the container (in MB)

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

MaxConcurrency int
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

MaxScale int
The maximum number of instances this container can scale to.
MemoryLimit int
The memory resources in MB to allocate to each container.
MinScale int
The minimum number of container instances running continuously.
Name Changes to this property will trigger replacement. string
The unique name of the container name.
NamespaceId string

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

Port int
The port to expose the container.
Privacy string
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
Protocol string
The communication protocol http1 or h2c. Defaults to http1.
Region Changes to this property will trigger replacement. 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.
Sandbox string
Execution environment of the container.
ScalingOptions []ContainerScalingOptionArgs
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
cpuLimit Integer
The amount of vCPU computing resources to allocate to each container.
cronStatus String
The cron status of the container.
deploy Boolean
Boolean indicating whether the container is in a production environment.
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.
healthChecks List<ContainerHealthCheck>
Health check configuration block of the container.
httpOption String
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
localStorageLimit Integer

Local storage limit of the container (in MB)

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

maxConcurrency Integer
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

maxScale Integer
The maximum number of instances this container can scale to.
memoryLimit Integer
The memory resources in MB to allocate to each container.
minScale Integer
The minimum number of container instances running continuously.
name Changes to this property will trigger replacement. String
The unique name of the container name.
namespaceId String

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

port Integer
The port to expose the container.
privacy String
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
protocol String
The communication protocol http1 or h2c. Defaults to http1.
region Changes to this property will trigger replacement. 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.
sandbox String
Execution environment of the container.
scalingOptions List<ContainerScalingOption>
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
cpuLimit number
The amount of vCPU computing resources to allocate to each container.
cronStatus string
The cron status of the container.
deploy boolean
Boolean indicating whether the container is in a production environment.
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.
healthChecks ContainerHealthCheck[]
Health check configuration block of the container.
httpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
localStorageLimit number

Local storage limit of the container (in MB)

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

maxConcurrency number
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

maxScale number
The maximum number of instances this container can scale to.
memoryLimit number
The memory resources in MB to allocate to each container.
minScale number
The minimum number of container instances running continuously.
name Changes to this property will trigger replacement. string
The unique name of the container name.
namespaceId string

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

port number
The port to expose the container.
privacy string
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
protocol string
The communication protocol http1 or h2c. Defaults to http1.
region Changes to this property will trigger replacement. 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.
sandbox string
Execution environment of the container.
scalingOptions ContainerScalingOption[]
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
cpu_limit int
The amount of vCPU computing resources to allocate to each container.
cron_status str
The cron status of the container.
deploy bool
Boolean indicating whether the container is in a production environment.
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.
health_checks Sequence[ContainerHealthCheckArgs]
Health check configuration block of the container.
http_option str
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
local_storage_limit int

Local storage limit of the container (in MB)

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

max_concurrency int
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

max_scale int
The maximum number of instances this container can scale to.
memory_limit int
The memory resources in MB to allocate to each container.
min_scale int
The minimum number of container instances running continuously.
name Changes to this property will trigger replacement. str
The unique name of the container name.
namespace_id str

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

port int
The port to expose the container.
privacy str
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
protocol str
The communication protocol http1 or h2c. Defaults to http1.
region Changes to this property will trigger replacement. 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.
sandbox str
Execution environment of the container.
scaling_options Sequence[ContainerScalingOptionArgs]
Configuration block used to decide when to scale up or down. Possible values:
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 your container can spend processing a request before being stopped. Default to 300 seconds.
cpuLimit Number
The amount of vCPU computing resources to allocate to each container.
cronStatus String
The cron status of the container.
deploy Boolean
Boolean indicating whether the container is in a production environment.
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.
healthChecks List<Property Map>
Health check configuration block of the container.
httpOption String
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
localStorageLimit Number

Local storage limit of the container (in MB)

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

maxConcurrency Number
The maximum number of simultaneous requests your container can handle at the same time. Use scaling_option.concurrent_requests_threshold instead.

Deprecated: Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.

maxScale Number
The maximum number of instances this container can scale to.
memoryLimit Number
The memory resources in MB to allocate to each container.
minScale Number
The minimum number of container instances running continuously.
name Changes to this property will trigger replacement. String
The unique name of the container name.
namespaceId String

The Containers namespace ID of the container.

Important Updating the name argument will recreate the container.

port Number
The port to expose the container.
privacy String
The privacy type defines the way to authenticate to your container. Please check our dedicated section.
protocol String
The communication protocol http1 or h2c. Defaults to http1.
region Changes to this property will trigger replacement. 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.
sandbox String
Execution environment of the container.
scalingOptions List<Property Map>
Configuration block used to decide when to scale up or down. Possible values:
secretEnvironmentVariables Map<String>
The secret environment variables of the container.
status String
The container status.
timeout Number
The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to 300 seconds.

Supporting Types

ContainerHealthCheck
, ContainerHealthCheckArgs

FailureThreshold This property is required. int
Number of consecutive health check failures before considering the container unhealthy.
Https This property is required. List<Pulumiverse.Scaleway.Inputs.ContainerHealthCheckHttp>
HTTP health check configuration.
Interval This property is required. string
Period between health checks (in seconds).
FailureThreshold This property is required. int
Number of consecutive health check failures before considering the container unhealthy.
Https This property is required. []ContainerHealthCheckHttp
HTTP health check configuration.
Interval This property is required. string
Period between health checks (in seconds).
failureThreshold This property is required. Integer
Number of consecutive health check failures before considering the container unhealthy.
https This property is required. List<ContainerHealthCheckHttp>
HTTP health check configuration.
interval This property is required. String
Period between health checks (in seconds).
failureThreshold This property is required. number
Number of consecutive health check failures before considering the container unhealthy.
https This property is required. ContainerHealthCheckHttp[]
HTTP health check configuration.
interval This property is required. string
Period between health checks (in seconds).
failure_threshold This property is required. int
Number of consecutive health check failures before considering the container unhealthy.
https This property is required. Sequence[ContainerHealthCheckHttp]
HTTP health check configuration.
interval This property is required. str
Period between health checks (in seconds).
failureThreshold This property is required. Number
Number of consecutive health check failures before considering the container unhealthy.
https This property is required. List<Property Map>
HTTP health check configuration.
interval This property is required. String
Period between health checks (in seconds).

ContainerHealthCheckHttp
, ContainerHealthCheckHttpArgs

Path This property is required. string
Path to use for the HTTP health check.
Path This property is required. string
Path to use for the HTTP health check.
path This property is required. String
Path to use for the HTTP health check.
path This property is required. string
Path to use for the HTTP health check.
path This property is required. str
Path to use for the HTTP health check.
path This property is required. String
Path to use for the HTTP health check.

ContainerScalingOption
, ContainerScalingOptionArgs

ConcurrentRequestsThreshold int
Scale depending on the number of concurrent requests being processed per container instance.
CpuUsageThreshold int
Scale depending on the CPU usage of a container instance.
MemoryUsageThreshold int
Scale depending on the memory usage of a container instance.
ConcurrentRequestsThreshold int
Scale depending on the number of concurrent requests being processed per container instance.
CpuUsageThreshold int
Scale depending on the CPU usage of a container instance.
MemoryUsageThreshold int
Scale depending on the memory usage of a container instance.
concurrentRequestsThreshold Integer
Scale depending on the number of concurrent requests being processed per container instance.
cpuUsageThreshold Integer
Scale depending on the CPU usage of a container instance.
memoryUsageThreshold Integer
Scale depending on the memory usage of a container instance.
concurrentRequestsThreshold number
Scale depending on the number of concurrent requests being processed per container instance.
cpuUsageThreshold number
Scale depending on the CPU usage of a container instance.
memoryUsageThreshold number
Scale depending on the memory usage of a container instance.
concurrent_requests_threshold int
Scale depending on the number of concurrent requests being processed per container instance.
cpu_usage_threshold int
Scale depending on the CPU usage of a container instance.
memory_usage_threshold int
Scale depending on the memory usage of a container instance.
concurrentRequestsThreshold Number
Scale depending on the number of concurrent requests being processed per container instance.
cpuUsageThreshold Number
Scale depending on the CPU usage of a container instance.
memoryUsageThreshold Number
Scale depending on the memory usage of a container instance.

Import

Containers can be imported using, {region}/{id}, as shown below:

bash

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

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.