published on Thursday, May 14, 2026 by pulumiverse
published on Thursday, May 14, 2026 by pulumiverse
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
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.containers.Namespace("main", {});
const mainContainer = new scaleway.containers.Container("main", {
name: "my-container",
description: "This container has a description.",
tags: [
"tag1",
"tag2",
],
namespaceId: main.id,
image: "nginx:latest",
port: 80,
cpuLimit: 1024,
memoryLimitBytes: 2048000000,
minScale: 3,
maxScale: 5,
timeout: 600,
protocol: "http1",
commands: [
"bash",
"-c",
"script.sh",
],
args: [
"some",
"args",
],
environmentVariables: {
foo: "var",
},
secretEnvironmentVariables: {
key: "secret",
},
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.containers.Namespace("main")
main_container = scaleway.containers.Container("main",
name="my-container",
description="This container has a description.",
tags=[
"tag1",
"tag2",
],
namespace_id=main.id,
image="nginx:latest",
port=80,
cpu_limit=1024,
memory_limit_bytes=2048000000,
min_scale=3,
max_scale=5,
timeout=600,
protocol="http1",
commands=[
"bash",
"-c",
"script.sh",
],
args=[
"some",
"args",
],
environment_variables={
"foo": "var",
},
secret_environment_variables={
"key": "secret",
})
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 {
main, err := containers.NewNamespace(ctx, "main", nil)
if err != nil {
return err
}
_, err = containers.NewContainer(ctx, "main", &containers.ContainerArgs{
Name: pulumi.String("my-container"),
Description: pulumi.String("This container has a description."),
Tags: pulumi.StringArray{
pulumi.String("tag1"),
pulumi.String("tag2"),
},
NamespaceId: main.ID(),
Image: pulumi.String("nginx:latest"),
Port: pulumi.Int(80),
CpuLimit: pulumi.Int(1024),
MemoryLimitBytes: pulumi.Int(2048000000),
MinScale: pulumi.Int(3),
MaxScale: pulumi.Int(5),
Timeout: pulumi.Int(600),
Protocol: pulumi.String("http1"),
Commands: pulumi.StringArray{
pulumi.String("bash"),
pulumi.String("-c"),
pulumi.String("script.sh"),
},
Args: pulumi.StringArray{
pulumi.String("some"),
pulumi.String("args"),
},
EnvironmentVariables: pulumi.StringMap{
"foo": pulumi.String("var"),
},
SecretEnvironmentVariables: pulumi.StringMap{
"key": pulumi.String("secret"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.Containers.Namespace("main");
var mainContainer = new Scaleway.Containers.Container("main", new()
{
Name = "my-container",
Description = "This container has a description.",
Tags = new[]
{
"tag1",
"tag2",
},
NamespaceId = main.Id,
Image = "nginx:latest",
Port = 80,
CpuLimit = 1024,
MemoryLimitBytes = 2048000000,
MinScale = 3,
MaxScale = 5,
Timeout = 600,
Protocol = "http1",
Commands = new[]
{
"bash",
"-c",
"script.sh",
},
Args = new[]
{
"some",
"args",
},
EnvironmentVariables =
{
{ "foo", "var" },
},
SecretEnvironmentVariables =
{
{ "key", "secret" },
},
});
});
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.Container;
import com.pulumi.scaleway.containers.ContainerArgs;
import java.util.ArrayList;
import java.util.Arrays;
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");
var mainContainer = new Container("mainContainer", ContainerArgs.builder()
.name("my-container")
.description("This container has a description.")
.tags(
"tag1",
"tag2")
.namespaceId(main.id())
.image("nginx:latest")
.port(80)
.cpuLimit(1024)
.memoryLimitBytes(2048000000)
.minScale(3)
.maxScale(5)
.timeout(600)
.protocol("http1")
.commands(
"bash",
"-c",
"script.sh")
.args(
"some",
"args")
.environmentVariables(Map.of("foo", "var"))
.secretEnvironmentVariables(Map.of("key", "secret"))
.build());
}
}
resources:
main:
type: scaleway:containers:Namespace
mainContainer:
type: scaleway:containers:Container
name: main
properties:
name: my-container
description: This container has a description.
tags:
- tag1
- tag2
namespaceId: ${main.id}
image: nginx:latest
port: 80
cpuLimit: 1024
memoryLimitBytes: 2.048e+09
minScale: 3
maxScale: 5
timeout: 600
protocol: http1
commands:
- bash
- -c
- script.sh
args:
- some
- args
environmentVariables:
foo: var
secretEnvironmentVariables:
key: secret
Example coming soon!
Redeploy the container everytime an update is made
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
import * as std from "@pulumi/std";
const main = scaleway.registry.getNamespace({
name: "my-registry",
});
const mainGetImage = main.then(main => scaleway.registry.getImage({
namespaceId: main.id,
name: "nginx-1-29-2-alpine",
}));
const mainNamespace = new scaleway.containers.Namespace("main", {});
const mainContainer = new scaleway.containers.Container("main", {
name: "my-container",
namespaceId: mainNamespace.id,
image: Promise.all([main, mainGetImage, mainGetImage]).then(([main, mainGetImage, mainGetImage1]) => `${main.endpoint}/${mainGetImage.name}:${mainGetImage1.tags?.[0]}`),
port: 80,
registrySha256: std.timestamp({}).result,
});
import pulumi
import pulumi_scaleway as scaleway
import pulumi_std as std
import pulumiverse_scaleway as scaleway
main = scaleway.registry.get_namespace(name="my-registry")
main_get_image = scaleway.registry.get_image(namespace_id=main.id,
name="nginx-1-29-2-alpine")
main_namespace = scaleway.containers.Namespace("main")
main_container = scaleway.containers.Container("main",
name="my-container",
namespace_id=main_namespace.id,
image=f"{main.endpoint}/{main_get_image.name}:{main_get_image.tags[0]}",
port=80,
registry_sha256=std.timestamp()["result"])
package main
import (
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/containers"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/registry"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := registry.LookupNamespace(ctx, ®istry.LookupNamespaceArgs{
Name: pulumi.StringRef("my-registry"),
}, nil)
if err != nil {
return err
}
mainGetImage, err := registry.GetImage(ctx, ®istry.GetImageArgs{
NamespaceId: pulumi.StringRef(main.Id),
Name: pulumi.StringRef("nginx-1-29-2-alpine"),
}, nil)
if err != nil {
return err
}
mainNamespace, err := containers.NewNamespace(ctx, "main", nil)
if err != nil {
return err
}
invokeTimestamp, err := std.Timestamp(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
_, err = containers.NewContainer(ctx, "main", &containers.ContainerArgs{
Name: pulumi.String("my-container"),
NamespaceId: mainNamespace.ID(),
Image: pulumi.Sprintf("%v/%v:%v", main.Endpoint, mainGetImage.Name, mainGetImage.Tags[0]),
Port: pulumi.Int(80),
RegistrySha256: invokeTimestamp.Result,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var main = Scaleway.Registry.GetNamespace.Invoke(new()
{
Name = "my-registry",
});
var mainGetImage = Scaleway.Registry.GetImage.Invoke(new()
{
NamespaceId = main.Apply(getNamespaceResult => getNamespaceResult.Id),
Name = "nginx-1-29-2-alpine",
});
var mainNamespace = new Scaleway.Containers.Namespace("main");
var mainContainer = new Scaleway.Containers.Container("main", new()
{
Name = "my-container",
NamespaceId = mainNamespace.Id,
Image = Output.Tuple(main, mainGetImage, mainGetImage).Apply(values =>
{
var main = values.Item1;
var mainGetImage = values.Item2;
var mainGetImage1 = values.Item3;
return $"{main.Apply(getNamespaceResult => getNamespaceResult.Endpoint)}/{mainGetImage.Apply(getImageResult => getImageResult.Name)}:{mainGetImage1.Tags[0]}";
}),
Port = 80,
RegistrySha256 = Std.Timestamp.Invoke().Result,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.registry.RegistryFunctions;
import com.pulumi.scaleway.registry.inputs.GetNamespaceArgs;
import com.pulumi.scaleway.registry.inputs.GetImageArgs;
import com.pulumi.scaleway.containers.Namespace;
import com.pulumi.scaleway.containers.Container;
import com.pulumi.scaleway.containers.ContainerArgs;
import com.pulumi.std.StdFunctions;
import java.util.ArrayList;
import java.util.Arrays;
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) {
final var main = RegistryFunctions.getNamespace(GetNamespaceArgs.builder()
.name("my-registry")
.build());
final var mainGetImage = RegistryFunctions.getImage(GetImageArgs.builder()
.namespaceId(main.id())
.name("nginx-1-29-2-alpine")
.build());
var mainNamespace = new Namespace("mainNamespace");
var mainContainer = new Container("mainContainer", ContainerArgs.builder()
.name("my-container")
.namespaceId(mainNamespace.id())
.image(String.format("%s/%s:%s", main.endpoint(),mainGetImage.name(),mainGetImage.tags()[0]))
.port(80)
.registrySha256(StdFunctions.timestamp(Map.ofEntries(
)).result())
.build());
}
}
resources:
mainNamespace:
type: scaleway:containers:Namespace
name: main
mainContainer:
type: scaleway:containers:Container
name: main
properties:
name: my-container
namespaceId: ${mainNamespace.id}
image: ${main.endpoint}/${mainGetImage.name}:${mainGetImage.tags[0]}
port: 80 # At every update, timestamp() will trigger a change and redeploy the container, even though nothing else has changed.
registrySha256:
fn::invoke:
function: std:timestamp
arguments: {}
return: result
variables:
main:
fn::invoke:
function: scaleway:registry:getNamespace
arguments:
name: my-registry
mainGetImage:
fn::invoke:
function: scaleway:registry:getImage
arguments:
namespaceId: ${main.id}
name: nginx-1-29-2-alpine
Example coming soon!
Redeploy the container when the image changes
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// When using mutable images (e.g., `latest` tag), you can use the `scaleway_registry_image_tag` data source along
// with the `registry_sha256` argument to trigger container redeployments when the image is updated.
// Ideally, you would create the namespace separately.
// For demonstration purposes, this example assumes the "nginx:latest" image is already available
// in the referenced namespace.
const main = new scaleway.registry.Namespace("main", {name: "some-unique-name"});
const nginx = scaleway.registry.getImageOutput({
namespaceId: main.id,
name: "nginx",
});
const nginxLatest = nginx.apply(nginx => scaleway.registry.getImageTagOutput({
imageId: nginx.id,
name: "latest",
}));
const mainNamespace = new scaleway.containers.Namespace("main", {name: "my-container-namespace"});
const mainContainer = new scaleway.containers.Container("main", {
name: "nginx-latest",
namespaceId: mainNamespace.id,
image: pulumi.all([nginx, nginxLatest]).apply(([nginx, nginxLatest]) => `${mainScalewayRegistryNamespace.endpoint}/${nginx.name}:${nginxLatest.name}`),
port: 80,
registrySha256: nginxLatest.apply(nginxLatest => nginxLatest.digest),
});
import pulumi
import pulumi_scaleway as scaleway
import pulumiverse_scaleway as scaleway
# When using mutable images (e.g., `latest` tag), you can use the `scaleway_registry_image_tag` data source along
# with the `registry_sha256` argument to trigger container redeployments when the image is updated.
# Ideally, you would create the namespace separately.
# For demonstration purposes, this example assumes the "nginx:latest" image is already available
# in the referenced namespace.
main = scaleway.registry.Namespace("main", name="some-unique-name")
nginx = scaleway.registry.get_image_output(namespace_id=main.id,
name="nginx")
nginx_latest = nginx.apply(lambda nginx: scaleway.registry.get_image_tag_output(image_id=nginx.id,
name="latest"))
main_namespace = scaleway.containers.Namespace("main", name="my-container-namespace")
main_container = scaleway.containers.Container("main",
name="nginx-latest",
namespace_id=main_namespace.id,
image=pulumi.Output.all(
nginx=nginx,
nginx_latest=nginx_latest
).apply(lambda resolved_outputs: f"{main_scaleway_registry_namespace['endpoint']}/{nginx.name}:{nginx_latest.name}")
,
port=80,
registry_sha256=nginx_latest.digest)
package main
import (
"fmt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/containers"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/registry"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// When using mutable images (e.g., `latest` tag), you can use the `scaleway_registry_image_tag` data source along
// with the `registry_sha256` argument to trigger container redeployments when the image is updated.
// Ideally, you would create the namespace separately.
// For demonstration purposes, this example assumes the "nginx:latest" image is already available
// in the referenced namespace.
main, err := registry.NewNamespace(ctx, "main", ®istry.NamespaceArgs{
Name: pulumi.String("some-unique-name"),
})
if err != nil {
return err
}
nginx := registry.GetImageOutput(ctx, registry.GetImageOutputArgs{
NamespaceId: main.ID(),
Name: pulumi.String("nginx"),
}, nil)
nginxLatest := nginx.ApplyT(func(nginx registry.GetImageResult) (registry.GetImageTagResult, error) {
return registry.GetImageTagResult(interface{}(registry.GetImageTag(ctx, ®istry.GetImageTagArgs{
ImageId: nginx.Id,
Name: pulumi.StringRef(pulumi.StringRef("latest")),
}, nil))), nil
}).(registry.GetImageTagResultOutput)
mainNamespace, err := containers.NewNamespace(ctx, "main", &containers.NamespaceArgs{
Name: pulumi.String("my-container-namespace"),
})
if err != nil {
return err
}
_, err = containers.NewContainer(ctx, "main", &containers.ContainerArgs{
Name: pulumi.String("nginx-latest"),
NamespaceId: mainNamespace.ID(),
Image: pulumi.All(nginx, nginxLatest).ApplyT(func(_args []interface{}) (string, error) {
nginx := _args[0].(registry.GetImageResult)
nginxLatest := _args[1].(registry.GetImageTagResult)
return fmt.Sprintf("%v/%v:%v", mainScalewayRegistryNamespace.Endpoint, nginx.Name, nginxLatest.Name), nil
}).(pulumi.StringOutput),
Port: pulumi.Int(80),
RegistrySha256: pulumi.String(nginxLatest.ApplyT(func(nginxLatest registry.GetImageTagResult) (*string, error) {
return &nginxLatest.Digest, nil
}).(pulumi.StringPtrOutput)),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// When using mutable images (e.g., `latest` tag), you can use the `scaleway_registry_image_tag` data source along
// with the `registry_sha256` argument to trigger container redeployments when the image is updated.
// Ideally, you would create the namespace separately.
// For demonstration purposes, this example assumes the "nginx:latest" image is already available
// in the referenced namespace.
var main = new Scaleway.Registry.Namespace("main", new()
{
Name = "some-unique-name",
});
var nginx = Scaleway.Registry.GetImage.Invoke(new()
{
NamespaceId = main.Id,
Name = "nginx",
});
var nginxLatest = Scaleway.Registry.GetImageTag.Invoke(new()
{
ImageId = nginx.Apply(getImageResult => getImageResult.Id),
Name = "latest",
});
var mainNamespace = new Scaleway.Containers.Namespace("main", new()
{
Name = "my-container-namespace",
});
var mainContainer = new Scaleway.Containers.Container("main", new()
{
Name = "nginx-latest",
NamespaceId = mainNamespace.Id,
Image = Output.Tuple(nginx, nginxLatest).Apply(values =>
{
var nginx = values.Item1;
var nginxLatest = values.Item2;
return $"{mainScalewayRegistryNamespace.Endpoint}/{nginx.Apply(getImageResult => getImageResult.Name)}:{nginxLatest.Apply(getImageTagResult => getImageTagResult.Name)}";
}),
Port = 80,
RegistrySha256 = nginxLatest.Apply(getImageTagResult => getImageTagResult.Digest),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.registry.RegistryFunctions;
import com.pulumi.scaleway.registry.inputs.GetImageArgs;
import com.pulumi.scaleway.registry.inputs.GetImageTagArgs;
import com.pulumi.scaleway.containers.Container;
import com.pulumi.scaleway.containers.ContainerArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
// When using mutable images (e.g., `latest` tag), you can use the `scaleway_registry_image_tag` data source along
// with the `registry_sha256` argument to trigger container redeployments when the image is updated.
// Ideally, you would create the namespace separately.
// For demonstration purposes, this example assumes the "nginx:latest" image is already available
// in the referenced namespace.
var main = new com.pulumi.scaleway.registry.Namespace("main", com.pulumi.scaleway.registry.NamespaceArgs.builder()
.name("some-unique-name")
.build());
final var nginx = RegistryFunctions.getImage(GetImageArgs.builder()
.namespaceId(main.id())
.name("nginx")
.build());
final var nginxLatest = nginx.applyValue(_nginx -> RegistryFunctions.getImageTag(GetImageTagArgs.builder()
.imageId(_nginx.id())
.name("latest")
.build()));
var mainNamespace = new com.pulumi.scaleway.containers.Namespace("mainNamespace", com.pulumi.scaleway.containers.NamespaceArgs.builder()
.name("my-container-namespace")
.build());
var mainContainer = new Container("mainContainer", ContainerArgs.builder()
.name("nginx-latest")
.namespaceId(mainNamespace.id())
.image(Output.tuple(nginx, nginxLatest).applyValue(values -> {
var nginx = values.t1;
var nginxLatest = values.t2;
return String.format("%s/%s:%s", mainScalewayRegistryNamespace.endpoint(),nginx.name(),nginxLatest.name());
}))
.port(80)
.registrySha256(nginxLatest.applyValue(_nginxLatest -> _nginxLatest.digest()))
.build());
}
}
resources:
# When using mutable images (e.g., `latest` tag), you can use the `scaleway_registry_image_tag` data source along
# with the `registry_sha256` argument to trigger container redeployments when the image is updated.
# Ideally, you would create the namespace separately.
# For demonstration purposes, this example assumes the "nginx:latest" image is already available
# in the referenced namespace.
main:
type: scaleway:registry:Namespace
properties:
name: some-unique-name
mainNamespace:
type: scaleway:containers:Namespace
name: main
properties:
name: my-container-namespace
mainContainer:
type: scaleway:containers:Container
name: main
properties:
name: nginx-latest
namespaceId: ${mainNamespace.id}
image: ${mainScalewayRegistryNamespace.endpoint}/${nginx.name}:${nginxLatest.name}
port: 80 # Whenever the `latest` tag of the `nginx` image is updated, the `registry_sha256` will change, triggering a redeployment of the container with the new image.
registrySha256: ${nginxLatest.digest}
variables:
nginx:
fn::invoke:
function: scaleway:registry:getImage
arguments:
namespaceId: ${main.id}
name: nginx
nginxLatest:
fn::invoke:
function: scaleway:registry:getImageTag
arguments:
imageId: ${nginx.id}
name: latest
Example coming soon!
Managing authentication of private containers with IAM
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Project to be referenced in the IAM policy
const _default = scaleway.account.getProject({
name: "default",
});
// IAM resources
const containerAuth = new scaleway.iam.Application("container_auth", {name: "container-auth"});
const accessPrivateContainers = new scaleway.iam.Policy("access_private_containers", {
applicationId: containerAuth.id,
rules: [{
projectIds: [_default.then(_default => _default.id)],
permissionSetNames: ["ContainersPrivateAccess"],
}],
});
const apiKey = new scaleway.iam.ApiKey("api_key", {applicationId: containerAuth.id});
// Container resources
const _private = new scaleway.containers.Namespace("private", {name: "private-container-namespace"});
const privateContainer = new scaleway.containers.Container("private", {
namespaceId: _private.id,
image: "rg.fr-par.scw.cloud/my-registry-ns/my-image:latest",
privacy: "private",
});
export const secretKey = apiKey.secretKey;
export const containerEndpoint = privateContainer.domainName;
import pulumi
import pulumi_scaleway as scaleway
import pulumiverse_scaleway as scaleway
# Project to be referenced in the IAM policy
default = scaleway.account.get_project(name="default")
# IAM resources
container_auth = scaleway.iam.Application("container_auth", name="container-auth")
access_private_containers = scaleway.iam.Policy("access_private_containers",
application_id=container_auth.id,
rules=[{
"project_ids": [default.id],
"permission_set_names": ["ContainersPrivateAccess"],
}])
api_key = scaleway.iam.ApiKey("api_key", application_id=container_auth.id)
# Container resources
private = scaleway.containers.Namespace("private", name="private-container-namespace")
private_container = scaleway.containers.Container("private",
namespace_id=private.id,
image="rg.fr-par.scw.cloud/my-registry-ns/my-image:latest",
privacy="private")
pulumi.export("secretKey", api_key.secret_key)
pulumi.export("containerEndpoint", private_container.domain_name)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/account"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/containers"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/iam"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Project to be referenced in the IAM policy
_default, err := account.LookupProject(ctx, &account.LookupProjectArgs{
Name: pulumi.StringRef("default"),
}, nil)
if err != nil {
return err
}
// IAM resources
containerAuth, err := iam.NewApplication(ctx, "container_auth", &iam.ApplicationArgs{
Name: pulumi.String("container-auth"),
})
if err != nil {
return err
}
_, err = iam.NewPolicy(ctx, "access_private_containers", &iam.PolicyArgs{
ApplicationId: containerAuth.ID(),
Rules: iam.PolicyRuleArray{
&iam.PolicyRuleArgs{
ProjectIds: pulumi.StringArray{
pulumi.String(_default.Id),
},
PermissionSetNames: pulumi.StringArray{
pulumi.String("ContainersPrivateAccess"),
},
},
},
})
if err != nil {
return err
}
apiKey, err := iam.NewApiKey(ctx, "api_key", &iam.ApiKeyArgs{
ApplicationId: containerAuth.ID(),
})
if err != nil {
return err
}
// Container resources
private, err := containers.NewNamespace(ctx, "private", &containers.NamespaceArgs{
Name: pulumi.String("private-container-namespace"),
})
if err != nil {
return err
}
privateContainer, err := containers.NewContainer(ctx, "private", &containers.ContainerArgs{
NamespaceId: private.ID(),
Image: pulumi.String("rg.fr-par.scw.cloud/my-registry-ns/my-image:latest"),
Privacy: pulumi.String("private"),
})
if err != nil {
return err
}
ctx.Export("secretKey", apiKey.SecretKey)
ctx.Export("containerEndpoint", privateContainer.DomainName)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// Project to be referenced in the IAM policy
var @default = Scaleway.Account.GetProject.Invoke(new()
{
Name = "default",
});
// IAM resources
var containerAuth = new Scaleway.Iam.Application("container_auth", new()
{
Name = "container-auth",
});
var accessPrivateContainers = new Scaleway.Iam.Policy("access_private_containers", new()
{
ApplicationId = containerAuth.Id,
Rules = new[]
{
new Scaleway.Iam.Inputs.PolicyRuleArgs
{
ProjectIds = new[]
{
@default.Apply(@default => @default.Apply(getProjectResult => getProjectResult.Id)),
},
PermissionSetNames = new[]
{
"ContainersPrivateAccess",
},
},
},
});
var apiKey = new Scaleway.Iam.ApiKey("api_key", new()
{
ApplicationId = containerAuth.Id,
});
// Container resources
var @private = new Scaleway.Containers.Namespace("private", new()
{
Name = "private-container-namespace",
});
var privateContainer = new Scaleway.Containers.Container("private", new()
{
NamespaceId = @private.Id,
Image = "rg.fr-par.scw.cloud/my-registry-ns/my-image:latest",
Privacy = "private",
});
return new Dictionary<string, object?>
{
["secretKey"] = apiKey.SecretKey,
["containerEndpoint"] = privateContainer.DomainName,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.account.AccountFunctions;
import com.pulumi.scaleway.account.inputs.GetProjectArgs;
import com.pulumi.scaleway.iam.Application;
import com.pulumi.scaleway.iam.ApplicationArgs;
import com.pulumi.scaleway.iam.Policy;
import com.pulumi.scaleway.iam.PolicyArgs;
import com.pulumi.scaleway.iam.inputs.PolicyRuleArgs;
import com.pulumi.scaleway.iam.ApiKey;
import com.pulumi.scaleway.iam.ApiKeyArgs;
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.ArrayList;
import java.util.Arrays;
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) {
// Project to be referenced in the IAM policy
final var default = AccountFunctions.getProject(GetProjectArgs.builder()
.name("default")
.build());
// IAM resources
var containerAuth = new Application("containerAuth", ApplicationArgs.builder()
.name("container-auth")
.build());
var accessPrivateContainers = new Policy("accessPrivateContainers", PolicyArgs.builder()
.applicationId(containerAuth.id())
.rules(PolicyRuleArgs.builder()
.projectIds(default_.id())
.permissionSetNames("ContainersPrivateAccess")
.build())
.build());
var apiKey = new ApiKey("apiKey", ApiKeyArgs.builder()
.applicationId(containerAuth.id())
.build());
// Container resources
var private_ = new Namespace("private", NamespaceArgs.builder()
.name("private-container-namespace")
.build());
var privateContainer = new Container("privateContainer", ContainerArgs.builder()
.namespaceId(private_.id())
.image("rg.fr-par.scw.cloud/my-registry-ns/my-image:latest")
.privacy("private")
.build());
ctx.export("secretKey", apiKey.secretKey());
ctx.export("containerEndpoint", privateContainer.domainName());
}
}
resources:
# IAM resources
containerAuth:
type: scaleway:iam:Application
name: container_auth
properties:
name: container-auth
accessPrivateContainers:
type: scaleway:iam:Policy
name: access_private_containers
properties:
applicationId: ${containerAuth.id}
rules:
- projectIds:
- ${default.id}
permissionSetNames:
- ContainersPrivateAccess
apiKey:
type: scaleway:iam:ApiKey
name: api_key
properties:
applicationId: ${containerAuth.id}
# Container resources
private:
type: scaleway:containers:Namespace
properties:
name: private-container-namespace
privateContainer:
type: scaleway:containers:Container
name: private
properties:
namespaceId: ${private.id}
image: rg.fr-par.scw.cloud/my-registry-ns/my-image:latest
privacy: private
variables:
# Project to be referenced in the IAM policy
default:
fn::invoke:
function: scaleway:account:getProject
arguments:
name: default
outputs:
# Output the secret key and the container's endpoint for the curl command
secretKey: ${apiKey.secretKey}
containerEndpoint: ${privateContainer.domainName}
Example coming soon!
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 memoryLimitBytes must correspond with the right amount of vCPU. Refer to the table below to determine the right memory/vCPU combination.
| Memory (in MB) | vCPU |
|---|---|
| 128 | 70m |
| 256 | 140m |
| 512 | 280m |
| 1024 | 560m |
| 2048 | 1120 |
| 3072 | 1680 |
| 4096 | 2240 |
~>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",
namespaceId: mainScalewayContainerNamespace.id,
livenessProbe: {
http: {
path: "/ping",
},
failureThreshold: 40,
interval: "5s",
timeout: "1m",
},
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.containers.Container("main",
name="my-container",
namespace_id=main_scaleway_container_namespace["id"],
liveness_probe={
"http": {
"path": "/ping",
},
"failure_threshold": 40,
"interval": "5s",
"timeout": "1m",
})
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"),
NamespaceId: pulumi.Any(mainScalewayContainerNamespace.Id),
LivenessProbe: &containers.ContainerLivenessProbeArgs{
Http: &containers.ContainerLivenessProbeHttpArgs{
Path: pulumi.String("/ping"),
},
FailureThreshold: pulumi.Int(40),
Interval: pulumi.String("5s"),
Timeout: pulumi.String("1m"),
},
})
if err != nil {
return err
}
return nil
})
}
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",
NamespaceId = mainScalewayContainerNamespace.Id,
LivenessProbe = new Scaleway.Containers.Inputs.ContainerLivenessProbeArgs
{
Http = new Scaleway.Containers.Inputs.ContainerLivenessProbeHttpArgs
{
Path = "/ping",
},
FailureThreshold = 40,
Interval = "5s",
Timeout = "1m",
},
});
});
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.ContainerLivenessProbeArgs;
import com.pulumi.scaleway.containers.inputs.ContainerLivenessProbeHttpArgs;
import java.util.ArrayList;
import java.util.Arrays;
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")
.namespaceId(mainScalewayContainerNamespace.id())
.livenessProbe(ContainerLivenessProbeArgs.builder()
.http(ContainerLivenessProbeHttpArgs.builder()
.path("/ping")
.build())
.failureThreshold(40)
.interval("5s")
.timeout("1m")
.build())
.build());
}
}
resources:
main:
type: scaleway:containers:Container
properties:
name: my-container
namespaceId: ${mainScalewayContainerNamespace.id}
livenessProbe:
http:
path: /ping
failureThreshold: 40
interval: 5s
timeout: 1m
Example coming soon!
~>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.
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,
}],
});
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,
}])
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
})
}
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,
},
},
});
});
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.ArrayList;
import java.util.Arrays;
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());
}
}
resources:
main:
type: scaleway:containers:Container
properties:
name: my-container-02
namespaceId: ${mainScalewayContainerNamespace.id}
scalingOptions:
- concurrentRequestsThreshold: 15
Example coming soon!
~>Important: A maximum of one of these parameters may be set. Also, when cpuUsageThreshold or memoryUsageThreshold are used, minScale 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,
args: Optional[Sequence[str]] = None,
commands: Optional[Sequence[str]] = 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,
https_connections_only: Optional[bool] = None,
image: Optional[str] = None,
liveness_probe: Optional[ContainerLivenessProbeArgs] = None,
local_storage_limit: Optional[int] = None,
local_storage_limit_bytes: Optional[int] = None,
max_scale: Optional[int] = None,
memory_limit: Optional[int] = None,
memory_limit_bytes: 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,
private_network_id: 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,
startup_probe: Optional[ContainerStartupProbeArgs] = None,
tags: Optional[Sequence[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.
resource "scaleway_container" "name" {
# resource properties
}Parameters
- 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
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:
- Namespace
Id string - The Containers namespace ID of the container.
- Args List<string>
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- Commands List<string>
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- 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.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- Description string
- The description of the container.
- Environment
Variables Dictionary<string, string> - The environment variables of the container.
- Health
Checks List<Pulumiverse.Scaleway. Inputs. Container Health Check> - Health check configuration block of the container.
- Http
Option string Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- Https
Connections boolOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - Image string
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - Liveness
Probe Pulumiverse.Scaleway. Inputs. Container Liveness Probe - Defines how to check if the container is running.
- Local
Storage intLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- Local
Storage intLimit Bytes - Local storage limit of the container (in bytes).
- 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.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- Memory
Limit intBytes - The memory resources in bytes to allocate to each container.
- Min
Scale int - The minimum number of container instances running continuously.
- Name string
The unique name of the container name.
Important Updating the
nameargument 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.
- Private
Network stringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- Protocol string
- The communication protocol
http1orh2c. Defaults tohttp1. - Region string
- (Defaults to provider
region) The region in which the container was created. - Registry
Image string The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- Registry
Sha256 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.
- Scaling
Options List<Pulumiverse.Scaleway. Inputs. Container Scaling Option> - Configuration block used to decide when to scale up or down. Possible values:
- Secret
Environment Dictionary<string, string>Variables - The secret environment variables of the container.
- Startup
Probe Pulumiverse.Scaleway. Inputs. Container Startup Probe - Defines how to check if the container has started successfully.
- List<string>
- The list of tags associated with the container.
- Timeout int
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- Namespace
Id string - The Containers namespace ID of the container.
- Args []string
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- Commands []string
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- 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.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- Description string
- The description of the container.
- Environment
Variables map[string]string - The environment variables of the container.
- Health
Checks []ContainerHealth Check Args - Health check configuration block of the container.
- Http
Option string Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- Https
Connections boolOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - Image string
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - Liveness
Probe ContainerLiveness Probe Args - Defines how to check if the container is running.
- Local
Storage intLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- Local
Storage intLimit Bytes - Local storage limit of the container (in bytes).
- 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.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- Memory
Limit intBytes - The memory resources in bytes to allocate to each container.
- Min
Scale int - The minimum number of container instances running continuously.
- Name string
The unique name of the container name.
Important Updating the
nameargument 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.
- Private
Network stringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- Protocol string
- The communication protocol
http1orh2c. Defaults tohttp1. - Region string
- (Defaults to provider
region) The region in which the container was created. - Registry
Image string The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- Registry
Sha256 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.
- Scaling
Options []ContainerScaling Option Args - Configuration block used to decide when to scale up or down. Possible values:
- Secret
Environment map[string]stringVariables - The secret environment variables of the container.
- Startup
Probe ContainerStartup Probe Args - Defines how to check if the container has started successfully.
- []string
- The list of tags associated with the container.
- Timeout int
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- namespace_
id string - The Containers namespace ID of the container.
- args list(string)
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands list(string)
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- cpu_
limit number - The amount of vCPU computing resources to allocate to each container.
- deploy bool
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- description string
- The description of the container.
- environment_
variables map(string) - The environment variables of the container.
- health_
checks list(object) - Health check configuration block of the container.
- http_
option string Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https_
connections_ boolonly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image string
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness_
probe object - Defines how to check if the container is running.
- local_
storage_ numberlimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local_
storage_ numberlimit_ bytes - Local storage limit of the container (in bytes).
- max_
scale number - The maximum number of instances this container can scale to.
- memory_
limit number The memory resources in MB to allocate to each container.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory_
limit_ numberbytes - The memory resources in bytes to allocate to each container.
- min_
scale number - The minimum number of container instances running continuously.
- name string
The unique name of the container name.
Important Updating the
nameargument 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.
- private_
network_ stringid The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol string
- The communication protocol
http1orh2c. Defaults tohttp1. - region string
- (Defaults to provider
region) The region in which the container was created. - registry_
image string The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- registry_
sha256 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.
- scaling_
options list(object) - Configuration block used to decide when to scale up or down. Possible values:
- secret_
environment_ map(string)variables - The secret environment variables of the container.
- startup_
probe object - Defines how to check if the container has started successfully.
- list(string)
- The list of tags associated with the container.
- timeout number
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- namespace
Id String - The Containers namespace ID of the container.
- args List<String>
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands List<String>
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- cpu
Limit Integer - The amount of vCPU computing resources to allocate to each container.
- deploy Boolean
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- description String
- The description of the container.
- environment
Variables Map<String,String> - The environment variables of the container.
- health
Checks List<ContainerHealth Check> - Health check configuration block of the container.
- http
Option String Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https
Connections BooleanOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image String
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness
Probe ContainerLiveness Probe - Defines how to check if the container is running.
- local
Storage IntegerLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local
Storage IntegerLimit Bytes - Local storage limit of the container (in bytes).
- max
Scale Integer - The maximum number of instances this container can scale to.
- memory
Limit Integer The memory resources in MB to allocate to each container.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory
Limit IntegerBytes - The memory resources in bytes to allocate to each container.
- min
Scale Integer - The minimum number of container instances running continuously.
- name String
The unique name of the container name.
Important Updating the
nameargument 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.
- private
Network StringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol String
- The communication protocol
http1orh2c. Defaults tohttp1. - region String
- (Defaults to provider
region) The region in which the container was created. - registry
Image String The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- registry
Sha256 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.
- scaling
Options List<ContainerScaling Option> - Configuration block used to decide when to scale up or down. Possible values:
- secret
Environment Map<String,String>Variables - The secret environment variables of the container.
- startup
Probe ContainerStartup Probe - Defines how to check if the container has started successfully.
- List<String>
- The list of tags associated with the container.
- timeout Integer
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- namespace
Id string - The Containers namespace ID of the container.
- args string[]
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands string[]
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- cpu
Limit number - The amount of vCPU computing resources to allocate to each container.
- deploy boolean
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- description string
- The description of the container.
- environment
Variables {[key: string]: string} - The environment variables of the container.
- health
Checks ContainerHealth Check[] - Health check configuration block of the container.
- http
Option string Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https
Connections booleanOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image string
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness
Probe ContainerLiveness Probe - Defines how to check if the container is running.
- local
Storage numberLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local
Storage numberLimit Bytes - Local storage limit of the container (in bytes).
- max
Scale number - The maximum number of instances this container can scale to.
- memory
Limit number The memory resources in MB to allocate to each container.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory
Limit numberBytes - The memory resources in bytes to allocate to each container.
- min
Scale number - The minimum number of container instances running continuously.
- name string
The unique name of the container name.
Important Updating the
nameargument 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.
- private
Network stringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol string
- The communication protocol
http1orh2c. Defaults tohttp1. - region string
- (Defaults to provider
region) The region in which the container was created. - registry
Image string The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- registry
Sha256 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.
- scaling
Options ContainerScaling Option[] - Configuration block used to decide when to scale up or down. Possible values:
- secret
Environment {[key: string]: string}Variables - The secret environment variables of the container.
- startup
Probe ContainerStartup Probe - Defines how to check if the container has started successfully.
- string[]
- The list of tags associated with the container.
- timeout number
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- namespace_
id str - The Containers namespace ID of the container.
- args Sequence[str]
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands Sequence[str]
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- 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.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- description str
- The description of the container.
- environment_
variables Mapping[str, str] - The environment variables of the container.
- health_
checks Sequence[ContainerHealth Check Args] - Health check configuration block of the container.
- http_
option str Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https_
connections_ boolonly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image str
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness_
probe ContainerLiveness Probe Args - Defines how to check if the container is running.
- local_
storage_ intlimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local_
storage_ intlimit_ bytes - Local storage limit of the container (in bytes).
- 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.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory_
limit_ intbytes - The memory resources in bytes to allocate to each container.
- min_
scale int - The minimum number of container instances running continuously.
- name str
The unique name of the container name.
Important Updating the
nameargument 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.
- private_
network_ strid The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol str
- The communication protocol
http1orh2c. Defaults tohttp1. - 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)Important: Exactly one of
imageorregistryImagemust be set.
- 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[ContainerScaling Option Args] - Configuration block used to decide when to scale up or down. Possible values:
- secret_
environment_ Mapping[str, str]variables - The secret environment variables of the container.
- startup_
probe ContainerStartup Probe Args - Defines how to check if the container has started successfully.
- Sequence[str]
- The list of tags associated with the container.
- timeout int
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- namespace
Id String - The Containers namespace ID of the container.
- args List<String>
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands List<String>
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- cpu
Limit Number - The amount of vCPU computing resources to allocate to each container.
- deploy Boolean
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- description String
- The description of the container.
- environment
Variables Map<String> - The environment variables of the container.
- health
Checks List<Property Map> - Health check configuration block of the container.
- http
Option String Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https
Connections BooleanOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image String
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness
Probe Property Map - Defines how to check if the container is running.
- local
Storage NumberLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local
Storage NumberLimit Bytes - Local storage limit of the container (in bytes).
- max
Scale Number - The maximum number of instances this container can scale to.
- memory
Limit Number The memory resources in MB to allocate to each container.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory
Limit NumberBytes - The memory resources in bytes to allocate to each container.
- min
Scale Number - The minimum number of container instances running continuously.
- name String
The unique name of the container name.
Important Updating the
nameargument 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.
- private
Network StringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol String
- The communication protocol
http1orh2c. Defaults tohttp1. - region String
- (Defaults to provider
region) The region in which the container was created. - registry
Image String The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- registry
Sha256 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.
- scaling
Options List<Property Map> - Configuration block used to decide when to scale up or down. Possible values:
- secret
Environment Map<String>Variables - The secret environment variables of the container.
- startup
Probe Property Map - Defines how to check if the container has started successfully.
- List<String>
- The list of tags associated with the container.
- timeout Number
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
Outputs
All input properties are implicitly available as output properties. Additionally, the Container resource produces the following output properties:
- Cron
Status string - The cron status of the container.
- Domain
Name string - The native domain name of the container
- Error
Message string - The error message of the container.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Endpoint string - The native domain name of the container
- Status string
- The container status.
- Cron
Status string - The cron status of the container.
- Domain
Name string - The native domain name of the container
- Error
Message string - The error message of the container.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Endpoint string - The native domain name of the container
- Status string
- The container status.
- cron_
status string - The cron status of the container.
- domain_
name string - The native domain name of the container
- error_
message string - The error message of the container.
- id string
- The provider-assigned unique ID for this managed resource.
- public_
endpoint string - The native domain name of the container
- status string
- The container status.
- cron
Status String - The cron status of the container.
- domain
Name String - The native domain name of the container
- error
Message String - The error message of the container.
- id String
- The provider-assigned unique ID for this managed resource.
- public
Endpoint String - The native domain name of the container
- status String
- The container status.
- cron
Status string - The cron status of the container.
- domain
Name string - The native domain name of the container
- error
Message string - The error message of the container.
- id string
- The provider-assigned unique ID for this managed resource.
- public
Endpoint string - The native domain name of the container
- status string
- The container status.
- 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.
- public_
endpoint str - The native domain name of the container
- status str
- The container status.
- cron
Status String - The cron status of the container.
- domain
Name String - The native domain name of the container
- error
Message String - The error message of the container.
- id String
- The provider-assigned unique ID for this managed resource.
- public
Endpoint String - The native domain name of the container
- status String
- The container status.
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,
args: Optional[Sequence[str]] = None,
commands: Optional[Sequence[str]] = 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,
https_connections_only: Optional[bool] = None,
image: Optional[str] = None,
liveness_probe: Optional[ContainerLivenessProbeArgs] = None,
local_storage_limit: Optional[int] = None,
local_storage_limit_bytes: Optional[int] = None,
max_scale: Optional[int] = None,
memory_limit: Optional[int] = None,
memory_limit_bytes: 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,
private_network_id: Optional[str] = None,
protocol: Optional[str] = None,
public_endpoint: 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,
startup_probe: Optional[ContainerStartupProbeArgs] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timeout: Optional[int] = None) -> Containerfunc 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}import {
to = scaleway_container.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Args List<string>
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- Commands List<string>
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- Cpu
Limit int - The amount of vCPU computing resources to allocate to each container.
- Cron
Status string - The cron status of the container.
- Deploy bool
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- Description string
- The description of the container.
- Domain
Name string - The native domain name of the container
- Environment
Variables Dictionary<string, string> - The environment variables of the container.
- Error
Message string - The error message of the container.
- Health
Checks List<Pulumiverse.Scaleway. Inputs. Container Health Check> - Health check configuration block of the container.
- Http
Option string Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- Https
Connections boolOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - Image string
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - Liveness
Probe Pulumiverse.Scaleway. Inputs. Container Liveness Probe - Defines how to check if the container is running.
- Local
Storage intLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- Local
Storage intLimit Bytes - Local storage limit of the container (in bytes).
- 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.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- Memory
Limit intBytes - The memory resources in bytes to allocate to each container.
- Min
Scale int - The minimum number of container instances running continuously.
- Name string
The unique name of the container name.
Important Updating the
nameargument will recreate the container.- Namespace
Id string - The Containers namespace ID of 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.
- Private
Network stringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- Protocol string
- The communication protocol
http1orh2c. Defaults tohttp1. - Public
Endpoint string - The native domain name of the container
- Region string
- (Defaults to provider
region) The region in which the container was created. - Registry
Image string The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- Registry
Sha256 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.
- Scaling
Options List<Pulumiverse.Scaleway. Inputs. Container Scaling Option> - Configuration block used to decide when to scale up or down. Possible values:
- Secret
Environment Dictionary<string, string>Variables - The secret environment variables of the container.
- Startup
Probe Pulumiverse.Scaleway. Inputs. Container Startup Probe - Defines how to check if the container has started successfully.
- Status string
- The container status.
- List<string>
- The list of tags associated with the container.
- Timeout int
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- Args []string
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- Commands []string
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- Cpu
Limit int - The amount of vCPU computing resources to allocate to each container.
- Cron
Status string - The cron status of the container.
- Deploy bool
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- Description string
- The description of the container.
- Domain
Name string - The native domain name of the container
- Environment
Variables map[string]string - The environment variables of the container.
- Error
Message string - The error message of the container.
- Health
Checks []ContainerHealth Check Args - Health check configuration block of the container.
- Http
Option string Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- Https
Connections boolOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - Image string
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - Liveness
Probe ContainerLiveness Probe Args - Defines how to check if the container is running.
- Local
Storage intLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- Local
Storage intLimit Bytes - Local storage limit of the container (in bytes).
- 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.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- Memory
Limit intBytes - The memory resources in bytes to allocate to each container.
- Min
Scale int - The minimum number of container instances running continuously.
- Name string
The unique name of the container name.
Important Updating the
nameargument will recreate the container.- Namespace
Id string - The Containers namespace ID of 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.
- Private
Network stringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- Protocol string
- The communication protocol
http1orh2c. Defaults tohttp1. - Public
Endpoint string - The native domain name of the container
- Region string
- (Defaults to provider
region) The region in which the container was created. - Registry
Image string The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- Registry
Sha256 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.
- Scaling
Options []ContainerScaling Option Args - Configuration block used to decide when to scale up or down. Possible values:
- Secret
Environment map[string]stringVariables - The secret environment variables of the container.
- Startup
Probe ContainerStartup Probe Args - Defines how to check if the container has started successfully.
- Status string
- The container status.
- []string
- The list of tags associated with the container.
- Timeout int
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- args list(string)
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands list(string)
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- cpu_
limit number - The amount of vCPU computing resources to allocate to each container.
- cron_
status string - The cron status of the container.
- deploy bool
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- description string
- The description of the container.
- domain_
name string - The native domain name of the container
- environment_
variables map(string) - The environment variables of the container.
- error_
message string - The error message of the container.
- health_
checks list(object) - Health check configuration block of the container.
- http_
option string Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https_
connections_ boolonly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image string
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness_
probe object - Defines how to check if the container is running.
- local_
storage_ numberlimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local_
storage_ numberlimit_ bytes - Local storage limit of the container (in bytes).
- max_
scale number - The maximum number of instances this container can scale to.
- memory_
limit number The memory resources in MB to allocate to each container.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory_
limit_ numberbytes - The memory resources in bytes to allocate to each container.
- min_
scale number - The minimum number of container instances running continuously.
- name string
The unique name of the container name.
Important Updating the
nameargument will recreate the container.- namespace_
id string - The Containers namespace ID of 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.
- private_
network_ stringid The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol string
- The communication protocol
http1orh2c. Defaults tohttp1. - public_
endpoint string - The native domain name of the container
- region string
- (Defaults to provider
region) The region in which the container was created. - registry_
image string The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- registry_
sha256 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.
- scaling_
options list(object) - Configuration block used to decide when to scale up or down. Possible values:
- secret_
environment_ map(string)variables - The secret environment variables of the container.
- startup_
probe object - Defines how to check if the container has started successfully.
- status string
- The container status.
- list(string)
- The list of tags associated with the container.
- timeout number
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- args List<String>
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands List<String>
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- cpu
Limit Integer - The amount of vCPU computing resources to allocate to each container.
- cron
Status String - The cron status of the container.
- deploy Boolean
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- description String
- The description of the container.
- domain
Name String - The native domain name of the container
- environment
Variables Map<String,String> - The environment variables of the container.
- error
Message String - The error message of the container.
- health
Checks List<ContainerHealth Check> - Health check configuration block of the container.
- http
Option String Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https
Connections BooleanOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image String
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness
Probe ContainerLiveness Probe - Defines how to check if the container is running.
- local
Storage IntegerLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local
Storage IntegerLimit Bytes - Local storage limit of the container (in bytes).
- max
Scale Integer - The maximum number of instances this container can scale to.
- memory
Limit Integer The memory resources in MB to allocate to each container.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory
Limit IntegerBytes - The memory resources in bytes to allocate to each container.
- min
Scale Integer - The minimum number of container instances running continuously.
- name String
The unique name of the container name.
Important Updating the
nameargument will recreate the container.- namespace
Id String - The Containers namespace ID of 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.
- private
Network StringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol String
- The communication protocol
http1orh2c. Defaults tohttp1. - public
Endpoint String - The native domain name of the container
- region String
- (Defaults to provider
region) The region in which the container was created. - registry
Image String The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- registry
Sha256 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.
- scaling
Options List<ContainerScaling Option> - Configuration block used to decide when to scale up or down. Possible values:
- secret
Environment Map<String,String>Variables - The secret environment variables of the container.
- startup
Probe ContainerStartup Probe - Defines how to check if the container has started successfully.
- status String
- The container status.
- List<String>
- The list of tags associated with the container.
- timeout Integer
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- args string[]
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands string[]
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- cpu
Limit number - The amount of vCPU computing resources to allocate to each container.
- cron
Status string - The cron status of the container.
- deploy boolean
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- description string
- The description of the container.
- domain
Name string - The native domain name of the container
- environment
Variables {[key: string]: string} - The environment variables of the container.
- error
Message string - The error message of the container.
- health
Checks ContainerHealth Check[] - Health check configuration block of the container.
- http
Option string Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https
Connections booleanOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image string
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness
Probe ContainerLiveness Probe - Defines how to check if the container is running.
- local
Storage numberLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local
Storage numberLimit Bytes - Local storage limit of the container (in bytes).
- max
Scale number - The maximum number of instances this container can scale to.
- memory
Limit number The memory resources in MB to allocate to each container.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory
Limit numberBytes - The memory resources in bytes to allocate to each container.
- min
Scale number - The minimum number of container instances running continuously.
- name string
The unique name of the container name.
Important Updating the
nameargument will recreate the container.- namespace
Id string - The Containers namespace ID of 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.
- private
Network stringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol string
- The communication protocol
http1orh2c. Defaults tohttp1. - public
Endpoint string - The native domain name of the container
- region string
- (Defaults to provider
region) The region in which the container was created. - registry
Image string The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- registry
Sha256 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.
- scaling
Options ContainerScaling Option[] - Configuration block used to decide when to scale up or down. Possible values:
- secret
Environment {[key: string]: string}Variables - The secret environment variables of the container.
- startup
Probe ContainerStartup Probe - Defines how to check if the container has started successfully.
- status string
- The container status.
- string[]
- The list of tags associated with the container.
- timeout number
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- args Sequence[str]
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands Sequence[str]
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- 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.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- 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[ContainerHealth Check Args] - Health check configuration block of the container.
- http_
option str Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https_
connections_ boolonly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image str
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness_
probe ContainerLiveness Probe Args - Defines how to check if the container is running.
- local_
storage_ intlimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local_
storage_ intlimit_ bytes - Local storage limit of the container (in bytes).
- 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.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory_
limit_ intbytes - The memory resources in bytes to allocate to each container.
- min_
scale int - The minimum number of container instances running continuously.
- name str
The unique name of the container name.
Important Updating the
nameargument will recreate the container.- namespace_
id str - The Containers namespace ID of 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.
- private_
network_ strid The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol str
- The communication protocol
http1orh2c. Defaults tohttp1. - public_
endpoint str - The native domain name of the container
- 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)Important: Exactly one of
imageorregistryImagemust be set.
- 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[ContainerScaling Option Args] - Configuration block used to decide when to scale up or down. Possible values:
- secret_
environment_ Mapping[str, str]variables - The secret environment variables of the container.
- startup_
probe ContainerStartup Probe Args - Defines how to check if the container has started successfully.
- status str
- The container status.
- Sequence[str]
- The list of tags associated with the container.
- timeout int
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
- args List<String>
- Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
- commands List<String>
- Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
- cpu
Limit Number - The amount of vCPU computing resources to allocate to each container.
- cron
Status String - The cron status of the container.
- deploy Boolean
Boolean indicating whether the container is in a production environment.
Important: Containers are now automatically deployed and redeployed; setting this attribute will not have any effect.
- description String
- The description of the container.
- domain
Name String - The native domain name of the container
- environment
Variables Map<String> - The environment variables of the container.
- error
Message String - The error message of the container.
- health
Checks List<Property Map> - Health check configuration block of the container.
- http
Option String Allows both HTTP and HTTPS (
enabled) or redirect HTTP to HTTPS (redirected). Defaults toenabled.Important: Only one of
httpsConnectionsOnlyorhttpOptioncan be set at a time.- https
Connections BooleanOnly - Allows both HTTP and HTTPS (
false) or redirect HTTP to HTTPS (true). Defaults tofalse. - image String
- The image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE) - liveness
Probe Property Map - Defines how to check if the container is running.
- local
Storage NumberLimit Local storage limit of the container (in MB)
Important: Only one of
localStorageLimitBytesorlocalStorageLimitcan be set at a time.- local
Storage NumberLimit Bytes - Local storage limit of the container (in bytes).
- max
Scale Number - The maximum number of instances this container can scale to.
- memory
Limit Number The memory resources in MB to allocate to each container.
Important: Only one of
memoryLimitormemoryLimitBytescan be set at a time.- memory
Limit NumberBytes - The memory resources in bytes to allocate to each container.
- min
Scale Number - The minimum number of container instances running continuously.
- name String
The unique name of the container name.
Important Updating the
nameargument will recreate the container.- namespace
Id String - The Containers namespace ID of 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.
- private
Network StringId The ID of the Private Network the container is connected to.
Note that if you want to use your own configuration, you must consult our configuration restrictions section.
- protocol String
- The communication protocol
http1orh2c. Defaults tohttp1. - public
Endpoint String - The native domain name of the container
- region String
- (Defaults to provider
region) The region in which the container was created. - registry
Image String The registry image address (e.g.,
rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE)Important: Exactly one of
imageorregistryImagemust be set.
- registry
Sha256 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.
- scaling
Options List<Property Map> - Configuration block used to decide when to scale up or down. Possible values:
- secret
Environment Map<String>Variables - The secret environment variables of the container.
- startup
Probe Property Map - Defines how to check if the container has started successfully.
- status String
- The container status.
- List<String>
- The list of tags associated with the container.
- timeout Number
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds.
Supporting Types
ContainerHealthCheck, ContainerHealthCheckArgs
- Failure
Threshold int - Number of consecutive failures before considering the container has to be restarted.
- Https
List<Pulumiverse.
Scaleway. Inputs. Container Health Check Http> - Perform HTTP check on the container with the specified path.
- Interval string
- Time interval between checks (in duration notation, e.g. "30s").
- Tcp bool
- When set to
true, performs TCP checks on the container.
- Failure
Threshold int - Number of consecutive failures before considering the container has to be restarted.
- Https
[]Container
Health Check Http - Perform HTTP check on the container with the specified path.
- Interval string
- Time interval between checks (in duration notation, e.g. "30s").
- Tcp bool
- When set to
true, performs TCP checks on the container.
- failure_
threshold number - Number of consecutive failures before considering the container has to be restarted.
- https list(object)
- Perform HTTP check on the container with the specified path.
- interval string
- Time interval between checks (in duration notation, e.g. "30s").
- tcp bool
- When set to
true, performs TCP checks on the container.
- failure
Threshold Integer - Number of consecutive failures before considering the container has to be restarted.
- https
List<Container
Health Check Http> - Perform HTTP check on the container with the specified path.
- interval String
- Time interval between checks (in duration notation, e.g. "30s").
- tcp Boolean
- When set to
true, performs TCP checks on the container.
- failure
Threshold number - Number of consecutive failures before considering the container has to be restarted.
- https
Container
Health Check Http[] - Perform HTTP check on the container with the specified path.
- interval string
- Time interval between checks (in duration notation, e.g. "30s").
- tcp boolean
- When set to
true, performs TCP checks on the container.
- failure_
threshold int - Number of consecutive failures before considering the container has to be restarted.
- https
Sequence[Container
Health Check Http] - Perform HTTP check on the container with the specified path.
- interval str
- Time interval between checks (in duration notation, e.g. "30s").
- tcp bool
- When set to
true, performs TCP checks on the container.
- failure
Threshold Number - Number of consecutive failures before considering the container has to be restarted.
- https List<Property Map>
- Perform HTTP check on the container with the specified path.
- interval String
- Time interval between checks (in duration notation, e.g. "30s").
- tcp Boolean
- When set to
true, performs TCP checks on the container.
ContainerHealthCheckHttp, ContainerHealthCheckHttpArgs
- Path string
- Path to use for the HTTP health check.
- Path string
- Path to use for the HTTP health check.
- path string
- Path to use for the HTTP health check.
- path String
- Path to use for the HTTP health check.
- path string
- Path to use for the HTTP health check.
- path str
- Path to use for the HTTP health check.
- path String
- Path to use for the HTTP health check.
ContainerLivenessProbe, ContainerLivenessProbeArgs
- Failure
Threshold int - Number of consecutive failures before considering the container has to be restarted.
- Interval string
- Time interval between checks (in duration notation, e.g. "30s").
- Timeout string
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - Http
Pulumiverse.
Scaleway. Inputs. Container Liveness Probe Http - Perform HTTP check on the container with the specified path.
- Tcp bool
- When set to
true, performs TCP checks on the container.
- Failure
Threshold int - Number of consecutive failures before considering the container has to be restarted.
- Interval string
- Time interval between checks (in duration notation, e.g. "30s").
- Timeout string
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - Http
Container
Liveness Probe Http - Perform HTTP check on the container with the specified path.
- Tcp bool
- When set to
true, performs TCP checks on the container.
- failure_
threshold number - Number of consecutive failures before considering the container has to be restarted.
- interval string
- Time interval between checks (in duration notation, e.g. "30s").
- timeout string
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http object
- Perform HTTP check on the container with the specified path.
- tcp bool
- When set to
true, performs TCP checks on the container.
- failure
Threshold Integer - Number of consecutive failures before considering the container has to be restarted.
- interval String
- Time interval between checks (in duration notation, e.g. "30s").
- timeout String
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http
Container
Liveness Probe Http - Perform HTTP check on the container with the specified path.
- tcp Boolean
- When set to
true, performs TCP checks on the container.
- failure
Threshold number - Number of consecutive failures before considering the container has to be restarted.
- interval string
- Time interval between checks (in duration notation, e.g. "30s").
- timeout string
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http
Container
Liveness Probe Http - Perform HTTP check on the container with the specified path.
- tcp boolean
- When set to
true, performs TCP checks on the container.
- failure_
threshold int - Number of consecutive failures before considering the container has to be restarted.
- interval str
- Time interval between checks (in duration notation, e.g. "30s").
- timeout str
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http
Container
Liveness Probe Http - Perform HTTP check on the container with the specified path.
- tcp bool
- When set to
true, performs TCP checks on the container.
- failure
Threshold Number - Number of consecutive failures before considering the container has to be restarted.
- interval String
- Time interval between checks (in duration notation, e.g. "30s").
- timeout String
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http Property Map
- Perform HTTP check on the container with the specified path.
- tcp Boolean
- When set to
true, performs TCP checks on the container.
ContainerLivenessProbeHttp, ContainerLivenessProbeHttpArgs
- Path string
- Path to use for the HTTP health check.
- Path string
- Path to use for the HTTP health check.
- path string
- Path to use for the HTTP health check.
- path String
- Path to use for the HTTP health check.
- path string
- Path to use for the HTTP health check.
- path str
- Path to use for the HTTP health check.
- path String
- Path to use for the HTTP health check.
ContainerScalingOption, ContainerScalingOptionArgs
- Concurrent
Requests intThreshold - Scale depending on the number of concurrent requests being processed per container instance.
- Cpu
Usage intThreshold - Scale depending on the CPU usage of a container instance.
- Memory
Usage intThreshold - Scale depending on the memory usage of a container instance.
- Concurrent
Requests intThreshold - Scale depending on the number of concurrent requests being processed per container instance.
- Cpu
Usage intThreshold - Scale depending on the CPU usage of a container instance.
- Memory
Usage intThreshold - Scale depending on the memory usage of a container instance.
- concurrent_
requests_ numberthreshold - Scale depending on the number of concurrent requests being processed per container instance.
- cpu_
usage_ numberthreshold - Scale depending on the CPU usage of a container instance.
- memory_
usage_ numberthreshold - Scale depending on the memory usage of a container instance.
- concurrent
Requests IntegerThreshold - Scale depending on the number of concurrent requests being processed per container instance.
- cpu
Usage IntegerThreshold - Scale depending on the CPU usage of a container instance.
- memory
Usage IntegerThreshold - Scale depending on the memory usage of a container instance.
- concurrent
Requests numberThreshold - Scale depending on the number of concurrent requests being processed per container instance.
- cpu
Usage numberThreshold - Scale depending on the CPU usage of a container instance.
- memory
Usage numberThreshold - Scale depending on the memory usage of a container instance.
- concurrent_
requests_ intthreshold - Scale depending on the number of concurrent requests being processed per container instance.
- cpu_
usage_ intthreshold - Scale depending on the CPU usage of a container instance.
- memory_
usage_ intthreshold - Scale depending on the memory usage of a container instance.
- concurrent
Requests NumberThreshold - Scale depending on the number of concurrent requests being processed per container instance.
- cpu
Usage NumberThreshold - Scale depending on the CPU usage of a container instance.
- memory
Usage NumberThreshold - Scale depending on the memory usage of a container instance.
ContainerStartupProbe, ContainerStartupProbeArgs
- Failure
Threshold int - Number of consecutive failures before considering the container has to be restarted.
- Interval string
- Time interval between checks (in duration notation).
- Timeout string
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - Http
Pulumiverse.
Scaleway. Inputs. Container Startup Probe Http - Perform HTTP check on the container with the specified path.
- Tcp bool
- Perform TCP check on the container
- Failure
Threshold int - Number of consecutive failures before considering the container has to be restarted.
- Interval string
- Time interval between checks (in duration notation).
- Timeout string
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - Http
Container
Startup Probe Http - Perform HTTP check on the container with the specified path.
- Tcp bool
- Perform TCP check on the container
- failure_
threshold number - Number of consecutive failures before considering the container has to be restarted.
- interval string
- Time interval between checks (in duration notation).
- timeout string
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http object
- Perform HTTP check on the container with the specified path.
- tcp bool
- Perform TCP check on the container
- failure
Threshold Integer - Number of consecutive failures before considering the container has to be restarted.
- interval String
- Time interval between checks (in duration notation).
- timeout String
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http
Container
Startup Probe Http - Perform HTTP check on the container with the specified path.
- tcp Boolean
- Perform TCP check on the container
- failure
Threshold number - Number of consecutive failures before considering the container has to be restarted.
- interval string
- Time interval between checks (in duration notation).
- timeout string
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http
Container
Startup Probe Http - Perform HTTP check on the container with the specified path.
- tcp boolean
- Perform TCP check on the container
- failure_
threshold int - Number of consecutive failures before considering the container has to be restarted.
- interval str
- Time interval between checks (in duration notation).
- timeout str
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http
Container
Startup Probe Http - Perform HTTP check on the container with the specified path.
- tcp bool
- Perform TCP check on the container
- failure
Threshold Number - Number of consecutive failures before considering the container has to be restarted.
- interval String
- Time interval between checks (in duration notation).
- timeout String
- The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to
300seconds. - http Property Map
- Perform HTTP check on the container with the specified path.
- tcp Boolean
- Perform TCP check on the container
ContainerStartupProbeHttp, ContainerStartupProbeHttpArgs
- Path string
- Path to use for the HTTP health check.
- Path string
- Path to use for the HTTP health check.
- path string
- Path to use for the HTTP health check.
- path String
- Path to use for the HTTP health check.
- path string
- Path to use for the HTTP health check.
- path str
- Path to use for the HTTP health check.
- path String
- Path to use for the HTTP health check.
Import
Containers can be imported using, {region}/{id}, as shown below:
$ pulumi import scaleway:index/container:Container main fr-par/11111111-1111-1111-1111-111111111111
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
scalewayTerraform Provider.
published on Thursday, May 14, 2026 by pulumiverse
