Try AWS Native preview for resources not in the classic version.
aws.lightsail.ContainerServiceDeploymentVersion
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a resource to manage a deployment version for your Amazon Lightsail container service.
NOTE: The Amazon Lightsail container service must be enabled to create a deployment.
NOTE: This resource allows you to manage an Amazon Lightsail container service deployment version but the provider cannot destroy it. Removing this resource from your configuration will remove it from your statefile.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lightsail.ContainerServiceDeploymentVersion("example", {
containers: [{
containerName: "hello-world",
image: "amazon/amazon-lightsail:hello-world",
commands: [],
environment: {
MY_ENVIRONMENT_VARIABLE: "my_value",
},
ports: {
"80": "HTTP",
},
}],
publicEndpoint: {
containerName: "hello-world",
containerPort: 80,
healthCheck: {
healthyThreshold: 2,
unhealthyThreshold: 2,
timeoutSeconds: 2,
intervalSeconds: 5,
path: "/",
successCodes: "200-499",
},
},
serviceName: exampleAwsLightsailContainerService.name,
});
import pulumi
import pulumi_aws as aws
example = aws.lightsail.ContainerServiceDeploymentVersion("example",
containers=[{
"containerName": "hello-world",
"image": "amazon/amazon-lightsail:hello-world",
"commands": [],
"environment": {
"MY_ENVIRONMENT_VARIABLE": "my_value",
},
"ports": {
"80": "HTTP",
},
}],
public_endpoint={
"containerName": "hello-world",
"containerPort": 80,
"healthCheck": {
"healthyThreshold": 2,
"unhealthyThreshold": 2,
"timeoutSeconds": 2,
"intervalSeconds": 5,
"path": "/",
"successCodes": "200-499",
},
},
service_name=example_aws_lightsail_container_service["name"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lightsail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lightsail.NewContainerServiceDeploymentVersion(ctx, "example", &lightsail.ContainerServiceDeploymentVersionArgs{
Containers: lightsail.ContainerServiceDeploymentVersionContainerArray{
&lightsail.ContainerServiceDeploymentVersionContainerArgs{
ContainerName: pulumi.String("hello-world"),
Image: pulumi.String("amazon/amazon-lightsail:hello-world"),
Commands: pulumi.StringArray{},
Environment: pulumi.StringMap{
"MY_ENVIRONMENT_VARIABLE": pulumi.String("my_value"),
},
Ports: pulumi.StringMap{
"80": pulumi.String("HTTP"),
},
},
},
PublicEndpoint: &lightsail.ContainerServiceDeploymentVersionPublicEndpointArgs{
ContainerName: pulumi.String("hello-world"),
ContainerPort: pulumi.Int(80),
HealthCheck: &lightsail.ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs{
HealthyThreshold: pulumi.Int(2),
UnhealthyThreshold: pulumi.Int(2),
TimeoutSeconds: pulumi.Int(2),
IntervalSeconds: pulumi.Int(5),
Path: pulumi.String("/"),
SuccessCodes: pulumi.String("200-499"),
},
},
ServiceName: pulumi.Any(exampleAwsLightsailContainerService.Name),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.LightSail.ContainerServiceDeploymentVersion("example", new()
{
Containers = new[]
{
new Aws.LightSail.Inputs.ContainerServiceDeploymentVersionContainerArgs
{
ContainerName = "hello-world",
Image = "amazon/amazon-lightsail:hello-world",
Commands = new() { },
Environment =
{
{ "MY_ENVIRONMENT_VARIABLE", "my_value" },
},
Ports =
{
{ "80", "HTTP" },
},
},
},
PublicEndpoint = new Aws.LightSail.Inputs.ContainerServiceDeploymentVersionPublicEndpointArgs
{
ContainerName = "hello-world",
ContainerPort = 80,
HealthCheck = new Aws.LightSail.Inputs.ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs
{
HealthyThreshold = 2,
UnhealthyThreshold = 2,
TimeoutSeconds = 2,
IntervalSeconds = 5,
Path = "/",
SuccessCodes = "200-499",
},
},
ServiceName = exampleAwsLightsailContainerService.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lightsail.ContainerServiceDeploymentVersion;
import com.pulumi.aws.lightsail.ContainerServiceDeploymentVersionArgs;
import com.pulumi.aws.lightsail.inputs.ContainerServiceDeploymentVersionContainerArgs;
import com.pulumi.aws.lightsail.inputs.ContainerServiceDeploymentVersionPublicEndpointArgs;
import com.pulumi.aws.lightsail.inputs.ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ContainerServiceDeploymentVersion("example", ContainerServiceDeploymentVersionArgs.builder()
.containers(ContainerServiceDeploymentVersionContainerArgs.builder()
.containerName("hello-world")
.image("amazon/amazon-lightsail:hello-world")
.commands()
.environment(Map.of("MY_ENVIRONMENT_VARIABLE", "my_value"))
.ports(Map.of("80", "HTTP"))
.build())
.publicEndpoint(ContainerServiceDeploymentVersionPublicEndpointArgs.builder()
.containerName("hello-world")
.containerPort(80)
.healthCheck(ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs.builder()
.healthyThreshold(2)
.unhealthyThreshold(2)
.timeoutSeconds(2)
.intervalSeconds(5)
.path("/")
.successCodes("200-499")
.build())
.build())
.serviceName(exampleAwsLightsailContainerService.name())
.build());
}
}
resources:
example:
type: aws:lightsail:ContainerServiceDeploymentVersion
properties:
containers:
- containerName: hello-world
image: amazon/amazon-lightsail:hello-world
commands: []
environment:
MY_ENVIRONMENT_VARIABLE: my_value
ports:
'80': HTTP
publicEndpoint:
containerName: hello-world
containerPort: 80
healthCheck:
healthyThreshold: 2
unhealthyThreshold: 2
timeoutSeconds: 2
intervalSeconds: 5
path: /
successCodes: 200-499
serviceName: ${exampleAwsLightsailContainerService.name}
Create ContainerServiceDeploymentVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerServiceDeploymentVersion(name: string, args: ContainerServiceDeploymentVersionArgs, opts?: CustomResourceOptions);
@overload
def ContainerServiceDeploymentVersion(resource_name: str,
args: ContainerServiceDeploymentVersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerServiceDeploymentVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
containers: Optional[Sequence[ContainerServiceDeploymentVersionContainerArgs]] = None,
service_name: Optional[str] = None,
public_endpoint: Optional[ContainerServiceDeploymentVersionPublicEndpointArgs] = None)
func NewContainerServiceDeploymentVersion(ctx *Context, name string, args ContainerServiceDeploymentVersionArgs, opts ...ResourceOption) (*ContainerServiceDeploymentVersion, error)
public ContainerServiceDeploymentVersion(string name, ContainerServiceDeploymentVersionArgs args, CustomResourceOptions? opts = null)
public ContainerServiceDeploymentVersion(String name, ContainerServiceDeploymentVersionArgs args)
public ContainerServiceDeploymentVersion(String name, ContainerServiceDeploymentVersionArgs args, CustomResourceOptions options)
type: aws:lightsail:ContainerServiceDeploymentVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ContainerServiceDeploymentVersionArgs
- 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 ContainerServiceDeploymentVersionArgs
- 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 ContainerServiceDeploymentVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerServiceDeploymentVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerServiceDeploymentVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var containerServiceDeploymentVersionResource = new Aws.LightSail.ContainerServiceDeploymentVersion("containerServiceDeploymentVersionResource", new()
{
Containers = new[]
{
new Aws.LightSail.Inputs.ContainerServiceDeploymentVersionContainerArgs
{
ContainerName = "string",
Image = "string",
Commands = new[]
{
"string",
},
Environment =
{
{ "string", "string" },
},
Ports =
{
{ "string", "string" },
},
},
},
ServiceName = "string",
PublicEndpoint = new Aws.LightSail.Inputs.ContainerServiceDeploymentVersionPublicEndpointArgs
{
ContainerName = "string",
ContainerPort = 0,
HealthCheck = new Aws.LightSail.Inputs.ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs
{
HealthyThreshold = 0,
IntervalSeconds = 0,
Path = "string",
SuccessCodes = "string",
TimeoutSeconds = 0,
UnhealthyThreshold = 0,
},
},
});
example, err := lightsail.NewContainerServiceDeploymentVersion(ctx, "containerServiceDeploymentVersionResource", &lightsail.ContainerServiceDeploymentVersionArgs{
Containers: lightsail.ContainerServiceDeploymentVersionContainerArray{
&lightsail.ContainerServiceDeploymentVersionContainerArgs{
ContainerName: pulumi.String("string"),
Image: pulumi.String("string"),
Commands: pulumi.StringArray{
pulumi.String("string"),
},
Environment: pulumi.StringMap{
"string": pulumi.String("string"),
},
Ports: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
ServiceName: pulumi.String("string"),
PublicEndpoint: &lightsail.ContainerServiceDeploymentVersionPublicEndpointArgs{
ContainerName: pulumi.String("string"),
ContainerPort: pulumi.Int(0),
HealthCheck: &lightsail.ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs{
HealthyThreshold: pulumi.Int(0),
IntervalSeconds: pulumi.Int(0),
Path: pulumi.String("string"),
SuccessCodes: pulumi.String("string"),
TimeoutSeconds: pulumi.Int(0),
UnhealthyThreshold: pulumi.Int(0),
},
},
})
var containerServiceDeploymentVersionResource = new ContainerServiceDeploymentVersion("containerServiceDeploymentVersionResource", ContainerServiceDeploymentVersionArgs.builder()
.containers(ContainerServiceDeploymentVersionContainerArgs.builder()
.containerName("string")
.image("string")
.commands("string")
.environment(Map.of("string", "string"))
.ports(Map.of("string", "string"))
.build())
.serviceName("string")
.publicEndpoint(ContainerServiceDeploymentVersionPublicEndpointArgs.builder()
.containerName("string")
.containerPort(0)
.healthCheck(ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs.builder()
.healthyThreshold(0)
.intervalSeconds(0)
.path("string")
.successCodes("string")
.timeoutSeconds(0)
.unhealthyThreshold(0)
.build())
.build())
.build());
container_service_deployment_version_resource = aws.lightsail.ContainerServiceDeploymentVersion("containerServiceDeploymentVersionResource",
containers=[{
"containerName": "string",
"image": "string",
"commands": ["string"],
"environment": {
"string": "string",
},
"ports": {
"string": "string",
},
}],
service_name="string",
public_endpoint={
"containerName": "string",
"containerPort": 0,
"healthCheck": {
"healthyThreshold": 0,
"intervalSeconds": 0,
"path": "string",
"successCodes": "string",
"timeoutSeconds": 0,
"unhealthyThreshold": 0,
},
})
const containerServiceDeploymentVersionResource = new aws.lightsail.ContainerServiceDeploymentVersion("containerServiceDeploymentVersionResource", {
containers: [{
containerName: "string",
image: "string",
commands: ["string"],
environment: {
string: "string",
},
ports: {
string: "string",
},
}],
serviceName: "string",
publicEndpoint: {
containerName: "string",
containerPort: 0,
healthCheck: {
healthyThreshold: 0,
intervalSeconds: 0,
path: "string",
successCodes: "string",
timeoutSeconds: 0,
unhealthyThreshold: 0,
},
},
});
type: aws:lightsail:ContainerServiceDeploymentVersion
properties:
containers:
- commands:
- string
containerName: string
environment:
string: string
image: string
ports:
string: string
publicEndpoint:
containerName: string
containerPort: 0
healthCheck:
healthyThreshold: 0
intervalSeconds: 0
path: string
successCodes: string
timeoutSeconds: 0
unhealthyThreshold: 0
serviceName: string
ContainerServiceDeploymentVersion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ContainerServiceDeploymentVersion resource accepts the following input properties:
- Containers
List<Pulumi.
Aws. Light Sail. Inputs. Container Service Deployment Version Container> - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- Service
Name string - The name for the container service.
- Public
Endpoint Pulumi.Aws. Light Sail. Inputs. Container Service Deployment Version Public Endpoint - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- Containers
[]Container
Service Deployment Version Container Args - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- Service
Name string - The name for the container service.
- Public
Endpoint ContainerService Deployment Version Public Endpoint Args - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- containers
List<Container
Service Deployment Version Container> - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- service
Name String - The name for the container service.
- public
Endpoint ContainerService Deployment Version Public Endpoint - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- containers
Container
Service Deployment Version Container[] - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- service
Name string - The name for the container service.
- public
Endpoint ContainerService Deployment Version Public Endpoint - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- containers
Sequence[Container
Service Deployment Version Container Args] - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- service_
name str - The name for the container service.
- public_
endpoint ContainerService Deployment Version Public Endpoint Args - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- containers List<Property Map>
- A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- service
Name String - The name for the container service.
- public
Endpoint Property Map - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerServiceDeploymentVersion resource produces the following output properties:
- created_
at str - The timestamp when the deployment was created.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of the container service.
- version int
- The version number of the deployment.
Look up Existing ContainerServiceDeploymentVersion Resource
Get an existing ContainerServiceDeploymentVersion 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?: ContainerServiceDeploymentVersionState, opts?: CustomResourceOptions): ContainerServiceDeploymentVersion
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
containers: Optional[Sequence[ContainerServiceDeploymentVersionContainerArgs]] = None,
created_at: Optional[str] = None,
public_endpoint: Optional[ContainerServiceDeploymentVersionPublicEndpointArgs] = None,
service_name: Optional[str] = None,
state: Optional[str] = None,
version: Optional[int] = None) -> ContainerServiceDeploymentVersion
func GetContainerServiceDeploymentVersion(ctx *Context, name string, id IDInput, state *ContainerServiceDeploymentVersionState, opts ...ResourceOption) (*ContainerServiceDeploymentVersion, error)
public static ContainerServiceDeploymentVersion Get(string name, Input<string> id, ContainerServiceDeploymentVersionState? state, CustomResourceOptions? opts = null)
public static ContainerServiceDeploymentVersion get(String name, Output<String> id, ContainerServiceDeploymentVersionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Containers
List<Pulumi.
Aws. Light Sail. Inputs. Container Service Deployment Version Container> - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- Created
At string - The timestamp when the deployment was created.
- Public
Endpoint Pulumi.Aws. Light Sail. Inputs. Container Service Deployment Version Public Endpoint - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- Service
Name string - The name for the container service.
- State string
- The current state of the container service.
- Version int
- The version number of the deployment.
- Containers
[]Container
Service Deployment Version Container Args - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- Created
At string - The timestamp when the deployment was created.
- Public
Endpoint ContainerService Deployment Version Public Endpoint Args - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- Service
Name string - The name for the container service.
- State string
- The current state of the container service.
- Version int
- The version number of the deployment.
- containers
List<Container
Service Deployment Version Container> - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- created
At String - The timestamp when the deployment was created.
- public
Endpoint ContainerService Deployment Version Public Endpoint - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- service
Name String - The name for the container service.
- state String
- The current state of the container service.
- version Integer
- The version number of the deployment.
- containers
Container
Service Deployment Version Container[] - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- created
At string - The timestamp when the deployment was created.
- public
Endpoint ContainerService Deployment Version Public Endpoint - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- service
Name string - The name for the container service.
- state string
- The current state of the container service.
- version number
- The version number of the deployment.
- containers
Sequence[Container
Service Deployment Version Container Args] - A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- created_
at str - The timestamp when the deployment was created.
- public_
endpoint ContainerService Deployment Version Public Endpoint Args - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- service_
name str - The name for the container service.
- state str
- The current state of the container service.
- version int
- The version number of the deployment.
- containers List<Property Map>
- A set of configuration blocks that describe the settings of the containers that will be launched on the container service. Maximum of 53. Detailed below.
- created
At String - The timestamp when the deployment was created.
- public
Endpoint Property Map - A configuration block that describes the settings of the public endpoint for the container service. Detailed below.
- service
Name String - The name for the container service.
- state String
- The current state of the container service.
- version Number
- The version number of the deployment.
Supporting Types
ContainerServiceDeploymentVersionContainer, ContainerServiceDeploymentVersionContainerArgs
- Container
Name string - The name for the container.
- Image string
- The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (
:
). For example,:container-service-1.mystaticwebsite.1
. Container images sourced from a public registry like Docker Hub don't start with a colon. For example,nginx:latest
ornginx
. - Commands List<string>
- The launch command for the container. A list of string.
- Environment Dictionary<string, string>
- A key-value map of the environment variables of the container.
- Ports Dictionary<string, string>
- A key-value map of the open firewall ports of the container. Valid values:
HTTP
,HTTPS
,TCP
,UDP
.
- Container
Name string - The name for the container.
- Image string
- The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (
:
). For example,:container-service-1.mystaticwebsite.1
. Container images sourced from a public registry like Docker Hub don't start with a colon. For example,nginx:latest
ornginx
. - Commands []string
- The launch command for the container. A list of string.
- Environment map[string]string
- A key-value map of the environment variables of the container.
- Ports map[string]string
- A key-value map of the open firewall ports of the container. Valid values:
HTTP
,HTTPS
,TCP
,UDP
.
- container
Name String - The name for the container.
- image String
- The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (
:
). For example,:container-service-1.mystaticwebsite.1
. Container images sourced from a public registry like Docker Hub don't start with a colon. For example,nginx:latest
ornginx
. - commands List<String>
- The launch command for the container. A list of string.
- environment Map<String,String>
- A key-value map of the environment variables of the container.
- ports Map<String,String>
- A key-value map of the open firewall ports of the container. Valid values:
HTTP
,HTTPS
,TCP
,UDP
.
- container
Name string - The name for the container.
- image string
- The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (
:
). For example,:container-service-1.mystaticwebsite.1
. Container images sourced from a public registry like Docker Hub don't start with a colon. For example,nginx:latest
ornginx
. - commands string[]
- The launch command for the container. A list of string.
- environment {[key: string]: string}
- A key-value map of the environment variables of the container.
- ports {[key: string]: string}
- A key-value map of the open firewall ports of the container. Valid values:
HTTP
,HTTPS
,TCP
,UDP
.
- container_
name str - The name for the container.
- image str
- The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (
:
). For example,:container-service-1.mystaticwebsite.1
. Container images sourced from a public registry like Docker Hub don't start with a colon. For example,nginx:latest
ornginx
. - commands Sequence[str]
- The launch command for the container. A list of string.
- environment Mapping[str, str]
- A key-value map of the environment variables of the container.
- ports Mapping[str, str]
- A key-value map of the open firewall ports of the container. Valid values:
HTTP
,HTTPS
,TCP
,UDP
.
- container
Name String - The name for the container.
- image String
- The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (
:
). For example,:container-service-1.mystaticwebsite.1
. Container images sourced from a public registry like Docker Hub don't start with a colon. For example,nginx:latest
ornginx
. - commands List<String>
- The launch command for the container. A list of string.
- environment Map<String>
- A key-value map of the environment variables of the container.
- ports Map<String>
- A key-value map of the open firewall ports of the container. Valid values:
HTTP
,HTTPS
,TCP
,UDP
.
ContainerServiceDeploymentVersionPublicEndpoint, ContainerServiceDeploymentVersionPublicEndpointArgs
- Container
Name string - The name of the container for the endpoint.
- Container
Port int - The port of the container to which traffic is forwarded to.
- Health
Check Pulumi.Aws. Light Sail. Inputs. Container Service Deployment Version Public Endpoint Health Check - A configuration block that describes the health check configuration of the container. Detailed below.
- Container
Name string - The name of the container for the endpoint.
- Container
Port int - The port of the container to which traffic is forwarded to.
- Health
Check ContainerService Deployment Version Public Endpoint Health Check - A configuration block that describes the health check configuration of the container. Detailed below.
- container
Name String - The name of the container for the endpoint.
- container
Port Integer - The port of the container to which traffic is forwarded to.
- health
Check ContainerService Deployment Version Public Endpoint Health Check - A configuration block that describes the health check configuration of the container. Detailed below.
- container
Name string - The name of the container for the endpoint.
- container
Port number - The port of the container to which traffic is forwarded to.
- health
Check ContainerService Deployment Version Public Endpoint Health Check - A configuration block that describes the health check configuration of the container. Detailed below.
- container_
name str - The name of the container for the endpoint.
- container_
port int - The port of the container to which traffic is forwarded to.
- health_
check ContainerService Deployment Version Public Endpoint Health Check - A configuration block that describes the health check configuration of the container. Detailed below.
- container
Name String - The name of the container for the endpoint.
- container
Port Number - The port of the container to which traffic is forwarded to.
- health
Check Property Map - A configuration block that describes the health check configuration of the container. Detailed below.
ContainerServiceDeploymentVersionPublicEndpointHealthCheck, ContainerServiceDeploymentVersionPublicEndpointHealthCheckArgs
- Healthy
Threshold int - The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.
- Interval
Seconds int - The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.
- Path string
- The path on the container on which to perform the health check. Defaults to "/".
- Success
Codes string - The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".
- Timeout
Seconds int - The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.
- Unhealthy
Threshold int - The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.
- Healthy
Threshold int - The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.
- Interval
Seconds int - The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.
- Path string
- The path on the container on which to perform the health check. Defaults to "/".
- Success
Codes string - The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".
- Timeout
Seconds int - The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.
- Unhealthy
Threshold int - The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.
- healthy
Threshold Integer - The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.
- interval
Seconds Integer - The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.
- path String
- The path on the container on which to perform the health check. Defaults to "/".
- success
Codes String - The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".
- timeout
Seconds Integer - The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.
- unhealthy
Threshold Integer - The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.
- healthy
Threshold number - The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.
- interval
Seconds number - The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.
- path string
- The path on the container on which to perform the health check. Defaults to "/".
- success
Codes string - The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".
- timeout
Seconds number - The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.
- unhealthy
Threshold number - The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.
- healthy_
threshold int - The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.
- interval_
seconds int - The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.
- path str
- The path on the container on which to perform the health check. Defaults to "/".
- success_
codes str - The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".
- timeout_
seconds int - The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.
- unhealthy_
threshold int - The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.
- healthy
Threshold Number - The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2.
- interval
Seconds Number - The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5.
- path String
- The path on the container on which to perform the health check. Defaults to "/".
- success
Codes String - The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499".
- timeout
Seconds Number - The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2.
- unhealthy
Threshold Number - The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2.
Import
Using pulumi import
, import Lightsail Container Service Deployment Version using the service_name
and version
separated by a slash (/
). For example:
$ pulumi import aws:lightsail/containerServiceDeploymentVersion:ContainerServiceDeploymentVersion example container-service-1/1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.