AWS Native is in preview. AWS Classic is fully supported.
aws-native.ecs.TaskDefinition
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Schema describing various properties for ECS TaskDefinition
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var taskdefinition = new AwsNative.Ecs.TaskDefinition("taskdefinition", new()
{
RequiresCompatibilities = new[]
{
"EC2",
},
ContainerDefinitions = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionContainerDefinitionArgs
{
Name = "my-app",
MountPoints = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionMountPointArgs
{
SourceVolume = "my-vol",
ContainerPath = "/var/www/my-vol",
},
},
Image = "amazon/amazon-ecs-sample",
Cpu = 256,
EntryPoint = new[]
{
"/usr/sbin/apache2",
"-D",
"FOREGROUND",
},
Memory = 512,
Essential = true,
},
new AwsNative.Ecs.Inputs.TaskDefinitionContainerDefinitionArgs
{
Name = "busybox",
Image = "busybox",
Cpu = 256,
EntryPoint = new[]
{
"sh",
"-c",
},
Memory = 512,
Command = new[]
{
"/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\"",
},
Essential = false,
DependsOn = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionContainerDependencyArgs
{
ContainerName = "my-app",
Condition = "START",
},
},
VolumesFrom = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionVolumeFromArgs
{
SourceContainer = "my-app",
},
},
},
},
Volumes = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionVolumeArgs
{
Host = new AwsNative.Ecs.Inputs.TaskDefinitionHostVolumePropertiesArgs
{
SourcePath = "/var/lib/docker/vfs/dir/",
},
Name = "my-vol",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.NewTaskDefinition(ctx, "taskdefinition", &ecs.TaskDefinitionArgs{
RequiresCompatibilities: pulumi.StringArray{
pulumi.String("EC2"),
},
ContainerDefinitions: []ecs.TaskDefinitionContainerDefinitionArgs{
{
Name: pulumi.String("my-app"),
MountPoints: ecs.TaskDefinitionMountPointArray{
{
SourceVolume: pulumi.String("my-vol"),
ContainerPath: pulumi.String("/var/www/my-vol"),
},
},
Image: pulumi.String("amazon/amazon-ecs-sample"),
Cpu: pulumi.Int(256),
EntryPoint: pulumi.StringArray{
pulumi.String("/usr/sbin/apache2"),
pulumi.String("-D"),
pulumi.String("FOREGROUND"),
},
Memory: pulumi.Int(512),
Essential: pulumi.Bool(true),
},
{
Name: pulumi.String("busybox"),
Image: pulumi.String("busybox"),
Cpu: pulumi.Int(256),
EntryPoint: pulumi.StringArray{
pulumi.String("sh"),
pulumi.String("-c"),
},
Memory: pulumi.Int(512),
Command: pulumi.StringArray{
pulumi.String("/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""),
},
Essential: pulumi.Bool(false),
DependsOn: ecs.TaskDefinitionContainerDependencyArray{
{
ContainerName: pulumi.String("my-app"),
Condition: pulumi.String("START"),
},
},
VolumesFrom: ecs.TaskDefinitionVolumeFromArray{
{
SourceContainer: pulumi.String("my-app"),
},
},
},
},
Volumes: []ecs.TaskDefinitionVolumeArgs{
{
Host: {
SourcePath: pulumi.String("/var/lib/docker/vfs/dir/"),
},
Name: pulumi.String("my-vol"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
taskdefinition = aws_native.ecs.TaskDefinition("taskdefinition",
requires_compatibilities=["EC2"],
container_definitions=[
aws_native.ecs.TaskDefinitionContainerDefinitionArgs(
name="my-app",
mount_points=[aws_native.ecs.TaskDefinitionMountPointArgs(
source_volume="my-vol",
container_path="/var/www/my-vol",
)],
image="amazon/amazon-ecs-sample",
cpu=256,
entry_point=[
"/usr/sbin/apache2",
"-D",
"FOREGROUND",
],
memory=512,
essential=True,
),
aws_native.ecs.TaskDefinitionContainerDefinitionArgs(
name="busybox",
image="busybox",
cpu=256,
entry_point=[
"sh",
"-c",
],
memory=512,
command=["/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""],
essential=False,
depends_on=[aws_native.ecs.TaskDefinitionContainerDependencyArgs(
container_name="my-app",
condition="START",
)],
volumes_from=[aws_native.ecs.TaskDefinitionVolumeFromArgs(
source_container="my-app",
)],
),
],
volumes=[aws_native.ecs.TaskDefinitionVolumeArgs(
host=aws_native.ecs.TaskDefinitionHostVolumePropertiesArgs(
source_path="/var/lib/docker/vfs/dir/",
),
name="my-vol",
)])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const taskdefinition = new aws_native.ecs.TaskDefinition("taskdefinition", {
requiresCompatibilities: ["EC2"],
containerDefinitions: [
{
name: "my-app",
mountPoints: [{
sourceVolume: "my-vol",
containerPath: "/var/www/my-vol",
}],
image: "amazon/amazon-ecs-sample",
cpu: 256,
entryPoint: [
"/usr/sbin/apache2",
"-D",
"FOREGROUND",
],
memory: 512,
essential: true,
},
{
name: "busybox",
image: "busybox",
cpu: 256,
entryPoint: [
"sh",
"-c",
],
memory: 512,
command: ["/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""],
essential: false,
dependsOn: [{
containerName: "my-app",
condition: "START",
}],
volumesFrom: [{
sourceContainer: "my-app",
}],
},
],
volumes: [{
host: {
sourcePath: "/var/lib/docker/vfs/dir/",
},
name: "my-vol",
}],
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var taskdefinition = new AwsNative.Ecs.TaskDefinition("taskdefinition", new()
{
RequiresCompatibilities = new[]
{
"EC2",
},
ContainerDefinitions = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionContainerDefinitionArgs
{
Name = "my-app",
MountPoints = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionMountPointArgs
{
SourceVolume = "my-vol",
ContainerPath = "/var/www/my-vol",
},
},
Image = "amazon/amazon-ecs-sample",
Cpu = 256,
EntryPoint = new[]
{
"/usr/sbin/apache2",
"-D",
"FOREGROUND",
},
Memory = 512,
Essential = true,
},
new AwsNative.Ecs.Inputs.TaskDefinitionContainerDefinitionArgs
{
Name = "busybox",
Image = "busybox",
Cpu = 256,
EntryPoint = new[]
{
"sh",
"-c",
},
Memory = 512,
Command = new[]
{
"/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\"",
},
Essential = false,
DependsOn = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionContainerDependencyArgs
{
ContainerName = "my-app",
Condition = "START",
},
},
VolumesFrom = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionVolumeFromArgs
{
SourceContainer = "my-app",
},
},
},
},
Volumes = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionVolumeArgs
{
Host = new AwsNative.Ecs.Inputs.TaskDefinitionHostVolumePropertiesArgs
{
SourcePath = "/var/lib/docker/vfs/dir/",
},
Name = "my-vol",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.NewTaskDefinition(ctx, "taskdefinition", &ecs.TaskDefinitionArgs{
RequiresCompatibilities: pulumi.StringArray{
pulumi.String("EC2"),
},
ContainerDefinitions: []ecs.TaskDefinitionContainerDefinitionArgs{
{
Name: pulumi.String("my-app"),
MountPoints: ecs.TaskDefinitionMountPointArray{
{
SourceVolume: pulumi.String("my-vol"),
ContainerPath: pulumi.String("/var/www/my-vol"),
},
},
Image: pulumi.String("amazon/amazon-ecs-sample"),
Cpu: pulumi.Int(256),
EntryPoint: pulumi.StringArray{
pulumi.String("/usr/sbin/apache2"),
pulumi.String("-D"),
pulumi.String("FOREGROUND"),
},
Memory: pulumi.Int(512),
Essential: pulumi.Bool(true),
},
{
Name: pulumi.String("busybox"),
Image: pulumi.String("busybox"),
Cpu: pulumi.Int(256),
EntryPoint: pulumi.StringArray{
pulumi.String("sh"),
pulumi.String("-c"),
},
Memory: pulumi.Int(512),
Command: pulumi.StringArray{
pulumi.String("/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""),
},
Essential: pulumi.Bool(false),
DependsOn: ecs.TaskDefinitionContainerDependencyArray{
{
ContainerName: pulumi.String("my-app"),
Condition: pulumi.String("START"),
},
},
VolumesFrom: ecs.TaskDefinitionVolumeFromArray{
{
SourceContainer: pulumi.String("my-app"),
},
},
},
},
Volumes: []ecs.TaskDefinitionVolumeArgs{
{
Host: {
SourcePath: pulumi.String("/var/lib/docker/vfs/dir/"),
},
Name: pulumi.String("my-vol"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
taskdefinition = aws_native.ecs.TaskDefinition("taskdefinition",
requires_compatibilities=["EC2"],
container_definitions=[
aws_native.ecs.TaskDefinitionContainerDefinitionArgs(
name="my-app",
mount_points=[aws_native.ecs.TaskDefinitionMountPointArgs(
source_volume="my-vol",
container_path="/var/www/my-vol",
)],
image="amazon/amazon-ecs-sample",
cpu=256,
entry_point=[
"/usr/sbin/apache2",
"-D",
"FOREGROUND",
],
memory=512,
essential=True,
),
aws_native.ecs.TaskDefinitionContainerDefinitionArgs(
name="busybox",
image="busybox",
cpu=256,
entry_point=[
"sh",
"-c",
],
memory=512,
command=["/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""],
essential=False,
depends_on=[aws_native.ecs.TaskDefinitionContainerDependencyArgs(
container_name="my-app",
condition="START",
)],
volumes_from=[aws_native.ecs.TaskDefinitionVolumeFromArgs(
source_container="my-app",
)],
),
],
volumes=[aws_native.ecs.TaskDefinitionVolumeArgs(
host=aws_native.ecs.TaskDefinitionHostVolumePropertiesArgs(
source_path="/var/lib/docker/vfs/dir/",
),
name="my-vol",
)])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const taskdefinition = new aws_native.ecs.TaskDefinition("taskdefinition", {
requiresCompatibilities: ["EC2"],
containerDefinitions: [
{
name: "my-app",
mountPoints: [{
sourceVolume: "my-vol",
containerPath: "/var/www/my-vol",
}],
image: "amazon/amazon-ecs-sample",
cpu: 256,
entryPoint: [
"/usr/sbin/apache2",
"-D",
"FOREGROUND",
],
memory: 512,
essential: true,
},
{
name: "busybox",
image: "busybox",
cpu: 256,
entryPoint: [
"sh",
"-c",
],
memory: 512,
command: ["/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""],
essential: false,
dependsOn: [{
containerName: "my-app",
condition: "START",
}],
volumesFrom: [{
sourceContainer: "my-app",
}],
},
],
volumes: [{
host: {
sourcePath: "/var/lib/docker/vfs/dir/",
},
name: "my-vol",
}],
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var ecsTaskDefinitionResource = new AwsNative.Ecs.TaskDefinition("ecsTaskDefinitionResource", new()
{
ContainerDefinitions = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionContainerDefinitionArgs
{
Name = "first-run-task",
Image = "httpd:2.4",
Essential = true,
PortMappings = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionPortMappingArgs
{
ContainerPort = 80,
Protocol = "tcp",
},
},
Environment = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionKeyValuePairArgs
{
Name = "entryPoint",
Value = "sh, -c",
},
new AwsNative.Ecs.Inputs.TaskDefinitionKeyValuePairArgs
{
Name = "command",
Value = "/bin/sh -c \\\"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\\\"",
},
},
EnvironmentFiles = new[] {},
},
},
Family = "first-run-task",
Cpu = "1 vCPU",
Memory = "3 GB",
});
return new Dictionary<string, object?>
{
["ecsTaskDefinition"] = ecsTaskDefinitionResource.Id,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ecsTaskDefinitionResource, err := ecs.NewTaskDefinition(ctx, "ecsTaskDefinitionResource", &ecs.TaskDefinitionArgs{
ContainerDefinitions: []ecs.TaskDefinitionContainerDefinitionArgs{
{
Name: pulumi.String("first-run-task"),
Image: pulumi.String("httpd:2.4"),
Essential: pulumi.Bool(true),
PortMappings: ecs.TaskDefinitionPortMappingArray{
{
ContainerPort: pulumi.Int(80),
Protocol: pulumi.String("tcp"),
},
},
Environment: ecs.TaskDefinitionKeyValuePairArray{
{
Name: pulumi.String("entryPoint"),
Value: pulumi.String("sh, -c"),
},
{
Name: pulumi.String("command"),
Value: pulumi.String("/bin/sh -c \\\"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\\\""),
},
},
EnvironmentFiles: ecs.TaskDefinitionEnvironmentFileArray{},
},
},
Family: pulumi.String("first-run-task"),
Cpu: pulumi.String("1 vCPU"),
Memory: pulumi.String("3 GB"),
})
if err != nil {
return err
}
ctx.Export("ecsTaskDefinition", ecsTaskDefinitionResource.ID())
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
ecs_task_definition_resource = aws_native.ecs.TaskDefinition("ecsTaskDefinitionResource",
container_definitions=[aws_native.ecs.TaskDefinitionContainerDefinitionArgs(
name="first-run-task",
image="httpd:2.4",
essential=True,
port_mappings=[aws_native.ecs.TaskDefinitionPortMappingArgs(
container_port=80,
protocol="tcp",
)],
environment=[
aws_native.ecs.TaskDefinitionKeyValuePairArgs(
name="entryPoint",
value="sh, -c",
),
aws_native.ecs.TaskDefinitionKeyValuePairArgs(
name="command",
value="/bin/sh -c \\\"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\\\"",
),
],
environment_files=[],
)],
family="first-run-task",
cpu="1 vCPU",
memory="3 GB")
pulumi.export("ecsTaskDefinition", ecs_task_definition_resource.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const ecsTaskDefinitionResource = new aws_native.ecs.TaskDefinition("ecsTaskDefinitionResource", {
containerDefinitions: [{
name: "first-run-task",
image: "httpd:2.4",
essential: true,
portMappings: [{
containerPort: 80,
protocol: "tcp",
}],
environment: [
{
name: "entryPoint",
value: "sh, -c",
},
{
name: "command",
value: "/bin/sh -c \\\"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\\\"",
},
],
environmentFiles: [],
}],
family: "first-run-task",
cpu: "1 vCPU",
memory: "3 GB",
});
export const ecsTaskDefinition = ecsTaskDefinitionResource.id;
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var ecsTaskDefinitionResource = new AwsNative.Ecs.TaskDefinition("ecsTaskDefinitionResource", new()
{
ContainerDefinitions = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionContainerDefinitionArgs
{
Name = "first-run-task",
Image = "httpd:2.4",
Essential = true,
PortMappings = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionPortMappingArgs
{
ContainerPort = 80,
Protocol = "tcp",
},
},
Environment = new[]
{
new AwsNative.Ecs.Inputs.TaskDefinitionKeyValuePairArgs
{
Name = "entryPoint",
Value = "sh, -c",
},
new AwsNative.Ecs.Inputs.TaskDefinitionKeyValuePairArgs
{
Name = "command",
Value = "/bin/sh -c \\\"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\\\"",
},
},
EnvironmentFiles = new[] {},
},
},
Family = "first-run-task",
Cpu = "1 vCPU",
Memory = "3 GB",
});
return new Dictionary<string, object?>
{
["ecsTaskDefinition"] = ecsTaskDefinitionResource.Id,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ecsTaskDefinitionResource, err := ecs.NewTaskDefinition(ctx, "ecsTaskDefinitionResource", &ecs.TaskDefinitionArgs{
ContainerDefinitions: []ecs.TaskDefinitionContainerDefinitionArgs{
{
Name: pulumi.String("first-run-task"),
Image: pulumi.String("httpd:2.4"),
Essential: pulumi.Bool(true),
PortMappings: ecs.TaskDefinitionPortMappingArray{
{
ContainerPort: pulumi.Int(80),
Protocol: pulumi.String("tcp"),
},
},
Environment: ecs.TaskDefinitionKeyValuePairArray{
{
Name: pulumi.String("entryPoint"),
Value: pulumi.String("sh, -c"),
},
{
Name: pulumi.String("command"),
Value: pulumi.String("/bin/sh -c \\\"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\\\""),
},
},
EnvironmentFiles: ecs.TaskDefinitionEnvironmentFileArray{},
},
},
Family: pulumi.String("first-run-task"),
Cpu: pulumi.String("1 vCPU"),
Memory: pulumi.String("3 GB"),
})
if err != nil {
return err
}
ctx.Export("ecsTaskDefinition", ecsTaskDefinitionResource.ID())
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
ecs_task_definition_resource = aws_native.ecs.TaskDefinition("ecsTaskDefinitionResource",
container_definitions=[aws_native.ecs.TaskDefinitionContainerDefinitionArgs(
name="first-run-task",
image="httpd:2.4",
essential=True,
port_mappings=[aws_native.ecs.TaskDefinitionPortMappingArgs(
container_port=80,
protocol="tcp",
)],
environment=[
aws_native.ecs.TaskDefinitionKeyValuePairArgs(
name="entryPoint",
value="sh, -c",
),
aws_native.ecs.TaskDefinitionKeyValuePairArgs(
name="command",
value="/bin/sh -c \\\"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\\\"",
),
],
environment_files=[],
)],
family="first-run-task",
cpu="1 vCPU",
memory="3 GB")
pulumi.export("ecsTaskDefinition", ecs_task_definition_resource.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const ecsTaskDefinitionResource = new aws_native.ecs.TaskDefinition("ecsTaskDefinitionResource", {
containerDefinitions: [{
name: "first-run-task",
image: "httpd:2.4",
essential: true,
portMappings: [{
containerPort: 80,
protocol: "tcp",
}],
environment: [
{
name: "entryPoint",
value: "sh, -c",
},
{
name: "command",
value: "/bin/sh -c \\\"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\\\"",
},
],
environmentFiles: [],
}],
family: "first-run-task",
cpu: "1 vCPU",
memory: "3 GB",
});
export const ecsTaskDefinition = ecsTaskDefinitionResource.id;
Coming soon!
Create TaskDefinition Resource
new TaskDefinition(name: string, args?: TaskDefinitionArgs, opts?: CustomResourceOptions);
@overload
def TaskDefinition(resource_name: str,
opts: Optional[ResourceOptions] = None,
container_definitions: Optional[Sequence[TaskDefinitionContainerDefinitionArgs]] = None,
cpu: Optional[str] = None,
ephemeral_storage: Optional[TaskDefinitionEphemeralStorageArgs] = None,
execution_role_arn: Optional[str] = None,
family: Optional[str] = None,
inference_accelerators: Optional[Sequence[TaskDefinitionInferenceAcceleratorArgs]] = None,
ipc_mode: Optional[str] = None,
memory: Optional[str] = None,
network_mode: Optional[str] = None,
pid_mode: Optional[str] = None,
placement_constraints: Optional[Sequence[TaskDefinitionPlacementConstraintArgs]] = None,
proxy_configuration: Optional[TaskDefinitionProxyConfigurationArgs] = None,
requires_compatibilities: Optional[Sequence[str]] = None,
runtime_platform: Optional[TaskDefinitionRuntimePlatformArgs] = None,
tags: Optional[Sequence[TaskDefinitionTagArgs]] = None,
task_role_arn: Optional[str] = None,
volumes: Optional[Sequence[TaskDefinitionVolumeArgs]] = None)
@overload
def TaskDefinition(resource_name: str,
args: Optional[TaskDefinitionArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewTaskDefinition(ctx *Context, name string, args *TaskDefinitionArgs, opts ...ResourceOption) (*TaskDefinition, error)
public TaskDefinition(string name, TaskDefinitionArgs? args = null, CustomResourceOptions? opts = null)
public TaskDefinition(String name, TaskDefinitionArgs args)
public TaskDefinition(String name, TaskDefinitionArgs args, CustomResourceOptions options)
type: aws-native:ecs:TaskDefinition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TaskDefinitionArgs
- 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 TaskDefinitionArgs
- 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 TaskDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TaskDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TaskDefinitionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TaskDefinition 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 TaskDefinition resource accepts the following input properties:
- Container
Definitions List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Container Definition> - Cpu string
- Ephemeral
Storage Pulumi.Aws Native. Ecs. Inputs. Task Definition Ephemeral Storage - Execution
Role stringArn - Family string
- Inference
Accelerators List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Inference Accelerator> - Ipc
Mode string - Memory string
- Network
Mode string - Pid
Mode string - Placement
Constraints List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Placement Constraint> - Proxy
Configuration Pulumi.Aws Native. Ecs. Inputs. Task Definition Proxy Configuration - Requires
Compatibilities List<string> - Runtime
Platform Pulumi.Aws Native. Ecs. Inputs. Task Definition Runtime Platform - List<Pulumi.
Aws Native. Ecs. Inputs. Task Definition Tag> - Task
Role stringArn - Volumes
List<Pulumi.
Aws Native. Ecs. Inputs. Task Definition Volume>
- Container
Definitions []TaskDefinition Container Definition Args - Cpu string
- Ephemeral
Storage TaskDefinition Ephemeral Storage Args - Execution
Role stringArn - Family string
- Inference
Accelerators []TaskDefinition Inference Accelerator Args - Ipc
Mode string - Memory string
- Network
Mode string - Pid
Mode string - Placement
Constraints []TaskDefinition Placement Constraint Args - Proxy
Configuration TaskDefinition Proxy Configuration Args - Requires
Compatibilities []string - Runtime
Platform TaskDefinition Runtime Platform Args - []Task
Definition Tag Args - Task
Role stringArn - Volumes
[]Task
Definition Volume Args
- container
Definitions List<TaskDefinition Container Definition> - cpu String
- ephemeral
Storage TaskDefinition Ephemeral Storage - execution
Role StringArn - family String
- inference
Accelerators List<TaskDefinition Inference Accelerator> - ipc
Mode String - memory String
- network
Mode String - pid
Mode String - placement
Constraints List<TaskDefinition Placement Constraint> - proxy
Configuration TaskDefinition Proxy Configuration - requires
Compatibilities List<String> - runtime
Platform TaskDefinition Runtime Platform - List<Task
Definition Tag> - task
Role StringArn - volumes
List<Task
Definition Volume>
- container
Definitions TaskDefinition Container Definition[] - cpu string
- ephemeral
Storage TaskDefinition Ephemeral Storage - execution
Role stringArn - family string
- inference
Accelerators TaskDefinition Inference Accelerator[] - ipc
Mode string - memory string
- network
Mode string - pid
Mode string - placement
Constraints TaskDefinition Placement Constraint[] - proxy
Configuration TaskDefinition Proxy Configuration - requires
Compatibilities string[] - runtime
Platform TaskDefinition Runtime Platform - Task
Definition Tag[] - task
Role stringArn - volumes
Task
Definition Volume[]
- container_
definitions Sequence[TaskDefinition Container Definition Args] - cpu str
- ephemeral_
storage TaskDefinition Ephemeral Storage Args - execution_
role_ strarn - family str
- inference_
accelerators Sequence[TaskDefinition Inference Accelerator Args] - ipc_
mode str - memory str
- network_
mode str - pid_
mode str - placement_
constraints Sequence[TaskDefinition Placement Constraint Args] - proxy_
configuration TaskDefinition Proxy Configuration Args - requires_
compatibilities Sequence[str] - runtime_
platform TaskDefinition Runtime Platform Args - Sequence[Task
Definition Tag Args] - task_
role_ strarn - volumes
Sequence[Task
Definition Volume Args]
- container
Definitions List<Property Map> - cpu String
- ephemeral
Storage Property Map - execution
Role StringArn - family String
- inference
Accelerators List<Property Map> - ipc
Mode String - memory String
- network
Mode String - pid
Mode String - placement
Constraints List<Property Map> - proxy
Configuration Property Map - requires
Compatibilities List<String> - runtime
Platform Property Map - List<Property Map>
- task
Role StringArn - volumes List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the TaskDefinition resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Task
Definition stringArn The Amazon Resource Name (ARN) of the Amazon ECS task definition
- Id string
The provider-assigned unique ID for this managed resource.
- Task
Definition stringArn The Amazon Resource Name (ARN) of the Amazon ECS task definition
- id String
The provider-assigned unique ID for this managed resource.
- task
Definition StringArn The Amazon Resource Name (ARN) of the Amazon ECS task definition
- id string
The provider-assigned unique ID for this managed resource.
- task
Definition stringArn The Amazon Resource Name (ARN) of the Amazon ECS task definition
- id str
The provider-assigned unique ID for this managed resource.
- task_
definition_ strarn The Amazon Resource Name (ARN) of the Amazon ECS task definition
- id String
The provider-assigned unique ID for this managed resource.
- task
Definition StringArn The Amazon Resource Name (ARN) of the Amazon ECS task definition
Supporting Types
TaskDefinitionAuthorizationConfig, TaskDefinitionAuthorizationConfigArgs
TaskDefinitionAuthorizationConfigIam, TaskDefinitionAuthorizationConfigIamArgs
- Enabled
- ENABLED
- Disabled
- DISABLED
- Task
Definition Authorization Config Iam Enabled - ENABLED
- Task
Definition Authorization Config Iam Disabled - DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- ENABLED
- ENABLED
- DISABLED
- DISABLED
- "ENABLED"
- ENABLED
- "DISABLED"
- DISABLED
TaskDefinitionContainerDefinition, TaskDefinitionContainerDefinitionArgs
- Image string
The image used to start a container. This string is passed directly to the Docker daemon.
- Name string
The name of a container. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed
- Command List<string>
- Cpu int
- Depends
On List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Container Dependency> - Disable
Networking bool - Dns
Search List<string>Domains - Dns
Servers List<string> - Docker
Labels object - Docker
Security List<string>Options - Entry
Point List<string> - Environment
List<Pulumi.
Aws Native. Ecs. Inputs. Task Definition Key Value Pair> The environment variables to pass to a container
- Environment
Files List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Environment File> The list of one or more files that contain the environment variables to pass to a container
- Essential bool
- Extra
Hosts List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Host Entry> - Firelens
Configuration Pulumi.Aws Native. Ecs. Inputs. Task Definition Firelens Configuration - Health
Check Pulumi.Aws Native. Ecs. Inputs. Task Definition Health Check - Hostname string
- Interactive bool
- Links List<string>
- Linux
Parameters Pulumi.Aws Native. Ecs. Inputs. Task Definition Linux Parameters - Log
Configuration Pulumi.Aws Native. Ecs. Inputs. Task Definition Log Configuration - Memory int
The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed.
- Memory
Reservation int - Mount
Points List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Mount Point> - Port
Mappings List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Port Mapping> Port mappings allow containers to access ports on the host container instance to send or receive traffic.
- Privileged bool
- Pseudo
Terminal bool - Readonly
Root boolFilesystem - Repository
Credentials Pulumi.Aws Native. Ecs. Inputs. Task Definition Repository Credentials - Resource
Requirements List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Resource Requirement> - Secrets
List<Pulumi.
Aws Native. Ecs. Inputs. Task Definition Secret> - Start
Timeout int - Stop
Timeout int - System
Controls List<Pulumi.Aws Native. Ecs. Inputs. Task Definition System Control> - Ulimits
List<Pulumi.
Aws Native. Ecs. Inputs. Task Definition Ulimit> - User string
- Volumes
From List<Pulumi.Aws Native. Ecs. Inputs. Task Definition Volume From> - Working
Directory string
- Image string
The image used to start a container. This string is passed directly to the Docker daemon.
- Name string
The name of a container. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed
- Command []string
- Cpu int
- Depends
On []TaskDefinition Container Dependency - Disable
Networking bool - Dns
Search []stringDomains - Dns
Servers []string - Docker
Labels interface{} - Docker
Security []stringOptions - Entry
Point []string - Environment
[]Task
Definition Key Value Pair The environment variables to pass to a container
- Environment
Files []TaskDefinition Environment File The list of one or more files that contain the environment variables to pass to a container
- Essential bool
- Extra
Hosts []TaskDefinition Host Entry - Firelens
Configuration TaskDefinition Firelens Configuration - Health
Check TaskDefinition Health Check - Hostname string
- Interactive bool
- Links []string
- Linux
Parameters TaskDefinition Linux Parameters - Log
Configuration TaskDefinition Log Configuration - Memory int
The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed.
- Memory
Reservation int - Mount
Points []TaskDefinition Mount Point - Port
Mappings []TaskDefinition Port Mapping Port mappings allow containers to access ports on the host container instance to send or receive traffic.
- Privileged bool
- Pseudo
Terminal bool - Readonly
Root boolFilesystem - Repository
Credentials TaskDefinition Repository Credentials - Resource
Requirements []TaskDefinition Resource Requirement - Secrets
[]Task
Definition Secret - Start
Timeout int - Stop
Timeout int - System
Controls []TaskDefinition System Control - Ulimits
[]Task
Definition Ulimit - User string
- Volumes
From []TaskDefinition Volume From - Working
Directory string
- image String
The image used to start a container. This string is passed directly to the Docker daemon.
- name String
The name of a container. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed
- command List<String>
- cpu Integer
- depends
On List<TaskDefinition Container Dependency> - disable
Networking Boolean - dns
Search List<String>Domains - dns
Servers List<String> - docker
Labels Object - docker
Security List<String>Options - entry
Point List<String> - environment
List<Task
Definition Key Value Pair> The environment variables to pass to a container
- environment
Files List<TaskDefinition Environment File> The list of one or more files that contain the environment variables to pass to a container
- essential Boolean
- extra
Hosts List<TaskDefinition Host Entry> - firelens
Configuration TaskDefinition Firelens Configuration - health
Check TaskDefinition Health Check - hostname String
- interactive Boolean
- links List<String>
- linux
Parameters TaskDefinition Linux Parameters - log
Configuration TaskDefinition Log Configuration - memory Integer
The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed.
- memory
Reservation Integer - mount
Points List<TaskDefinition Mount Point> - port
Mappings List<TaskDefinition Port Mapping> Port mappings allow containers to access ports on the host container instance to send or receive traffic.
- privileged Boolean
- pseudo
Terminal Boolean - readonly
Root BooleanFilesystem - repository
Credentials TaskDefinition Repository Credentials - resource
Requirements List<TaskDefinition Resource Requirement> - secrets
List<Task
Definition Secret> - start
Timeout Integer - stop
Timeout Integer - system
Controls List<TaskDefinition System Control> - ulimits
List<Task
Definition Ulimit> - user String
- volumes
From List<TaskDefinition Volume From> - working
Directory String
- image string
The image used to start a container. This string is passed directly to the Docker daemon.
- name string
The name of a container. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed
- command string[]
- cpu number
- depends
On TaskDefinition Container Dependency[] - disable
Networking boolean - dns
Search string[]Domains - dns
Servers string[] - docker
Labels any - docker
Security string[]Options - entry
Point string[] - environment
Task
Definition Key Value Pair[] The environment variables to pass to a container
- environment
Files TaskDefinition Environment File[] The list of one or more files that contain the environment variables to pass to a container
- essential boolean
- extra
Hosts TaskDefinition Host Entry[] - firelens
Configuration TaskDefinition Firelens Configuration - health
Check TaskDefinition Health Check - hostname string
- interactive boolean
- links string[]
- linux
Parameters TaskDefinition Linux Parameters - log
Configuration TaskDefinition Log Configuration - memory number
The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed.
- memory
Reservation number - mount
Points TaskDefinition Mount Point[] - port
Mappings TaskDefinition Port Mapping[] Port mappings allow containers to access ports on the host container instance to send or receive traffic.
- privileged boolean
- pseudo
Terminal boolean - readonly
Root booleanFilesystem - repository
Credentials TaskDefinition Repository Credentials - resource
Requirements TaskDefinition Resource Requirement[] - secrets
Task
Definition Secret[] - start
Timeout number - stop
Timeout number - system
Controls TaskDefinition System Control[] - ulimits
Task
Definition Ulimit[] - user string
- volumes
From TaskDefinition Volume From[] - working
Directory string
- image str
The image used to start a container. This string is passed directly to the Docker daemon.
- name str
The name of a container. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed
- command Sequence[str]
- cpu int
- depends_
on Sequence[TaskDefinition Container Dependency] - disable_
networking bool - dns_
search_ Sequence[str]domains - dns_
servers Sequence[str] - docker_
labels Any - docker_
security_ Sequence[str]options - entry_
point Sequence[str] - environment
Sequence[Task
Definition Key Value Pair] The environment variables to pass to a container
- environment_
files Sequence[TaskDefinition Environment File] The list of one or more files that contain the environment variables to pass to a container
- essential bool
- extra_
hosts Sequence[TaskDefinition Host Entry] - firelens_
configuration TaskDefinition Firelens Configuration - health_
check TaskDefinition Health Check - hostname str
- interactive bool
- links Sequence[str]
- linux_
parameters TaskDefinition Linux Parameters - log_
configuration TaskDefinition Log Configuration - memory int
The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed.
- memory_
reservation int - mount_
points Sequence[TaskDefinition Mount Point] - port_
mappings Sequence[TaskDefinition Port Mapping] Port mappings allow containers to access ports on the host container instance to send or receive traffic.
- privileged bool
- pseudo_
terminal bool - readonly_
root_ boolfilesystem - repository_
credentials TaskDefinition Repository Credentials - resource_
requirements Sequence[TaskDefinition Resource Requirement] - secrets
Sequence[Task
Definition Secret] - start_
timeout int - stop_
timeout int - system_
controls Sequence[TaskDefinition System Control] - ulimits
Sequence[Task
Definition Ulimit] - user str
- volumes_
from Sequence[TaskDefinition Volume From] - working_
directory str
- image String
The image used to start a container. This string is passed directly to the Docker daemon.
- name String
The name of a container. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed
- command List<String>
- cpu Number
- depends
On List<Property Map> - disable
Networking Boolean - dns
Search List<String>Domains - dns
Servers List<String> - docker
Labels Any - docker
Security List<String>Options - entry
Point List<String> - environment List<Property Map>
The environment variables to pass to a container
- environment
Files List<Property Map> The list of one or more files that contain the environment variables to pass to a container
- essential Boolean
- extra
Hosts List<Property Map> - firelens
Configuration Property Map - health
Check Property Map - hostname String
- interactive Boolean
- links List<String>
- linux
Parameters Property Map - log
Configuration Property Map - memory Number
The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed.
- memory
Reservation Number - mount
Points List<Property Map> - port
Mappings List<Property Map> Port mappings allow containers to access ports on the host container instance to send or receive traffic.
- privileged Boolean
- pseudo
Terminal Boolean - readonly
Root BooleanFilesystem - repository
Credentials Property Map - resource
Requirements List<Property Map> - secrets List<Property Map>
- start
Timeout Number - stop
Timeout Number - system
Controls List<Property Map> - ulimits List<Property Map>
- user String
- volumes
From List<Property Map> - working
Directory String
TaskDefinitionContainerDependency, TaskDefinitionContainerDependencyArgs
- Condition string
- Container
Name string
- Condition string
- Container
Name string
- condition String
- container
Name String
- condition string
- container
Name string
- condition str
- container_
name str
- condition String
- container
Name String
TaskDefinitionDevice, TaskDefinitionDeviceArgs
- Container
Path string - Host
Path string - Permissions List<string>
- Container
Path string - Host
Path string - Permissions []string
- container
Path String - host
Path String - permissions List<String>
- container
Path string - host
Path string - permissions string[]
- container_
path str - host_
path str - permissions Sequence[str]
- container
Path String - host
Path String - permissions List<String>
TaskDefinitionDockerVolumeConfiguration, TaskDefinitionDockerVolumeConfigurationArgs
- Autoprovision bool
- Driver string
- Driver
Opts object - Labels object
- Scope string
- Autoprovision bool
- Driver string
- Driver
Opts interface{} - Labels interface{}
- Scope string
- autoprovision Boolean
- driver String
- driver
Opts Object - labels Object
- scope String
- autoprovision boolean
- driver string
- driver
Opts any - labels any
- scope string
- autoprovision bool
- driver str
- driver_
opts Any - labels Any
- scope str
- autoprovision Boolean
- driver String
- driver
Opts Any - labels Any
- scope String
TaskDefinitionEfsVolumeConfiguration, TaskDefinitionEfsVolumeConfigurationArgs
TaskDefinitionEfsVolumeConfigurationTransitEncryption, TaskDefinitionEfsVolumeConfigurationTransitEncryptionArgs
- Enabled
- ENABLED
- Disabled
- DISABLED
- Task
Definition Efs Volume Configuration Transit Encryption Enabled - ENABLED
- Task
Definition Efs Volume Configuration Transit Encryption Disabled - DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- ENABLED
- ENABLED
- DISABLED
- DISABLED
- "ENABLED"
- ENABLED
- "DISABLED"
- DISABLED
TaskDefinitionEnvironmentFile, TaskDefinitionEnvironmentFileArgs
TaskDefinitionEphemeralStorage, TaskDefinitionEphemeralStorageArgs
- Size
In intGi B
- Size
In intGi B
- size
In IntegerGi B
- size
In numberGi B
- size_
in_ intgi_ b
- size
In NumberGi B
TaskDefinitionFirelensConfiguration, TaskDefinitionFirelensConfigurationArgs
TaskDefinitionHealthCheck, TaskDefinitionHealthCheckArgs
- Command List<string>
A string array representing the command that the container runs to determine if it is healthy.
- Interval int
The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.
- Retries int
The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is three retries.
- Start
Period int The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You may specify between 0 and 300 seconds. The startPeriod is disabled by default.
- Timeout int
The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5 seconds.
- Command []string
A string array representing the command that the container runs to determine if it is healthy.
- Interval int
The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.
- Retries int
The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is three retries.
- Start
Period int The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You may specify between 0 and 300 seconds. The startPeriod is disabled by default.
- Timeout int
The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5 seconds.
- command List<String>
A string array representing the command that the container runs to determine if it is healthy.
- interval Integer
The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.
- retries Integer
The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is three retries.
- start
Period Integer The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You may specify between 0 and 300 seconds. The startPeriod is disabled by default.
- timeout Integer
The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5 seconds.
- command string[]
A string array representing the command that the container runs to determine if it is healthy.
- interval number
The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.
- retries number
The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is three retries.
- start
Period number The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You may specify between 0 and 300 seconds. The startPeriod is disabled by default.
- timeout number
The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5 seconds.
- command Sequence[str]
A string array representing the command that the container runs to determine if it is healthy.
- interval int
The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.
- retries int
The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is three retries.
- start_
period int The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You may specify between 0 and 300 seconds. The startPeriod is disabled by default.
- timeout int
The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5 seconds.
- command List<String>
A string array representing the command that the container runs to determine if it is healthy.
- interval Number
The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.
- retries Number
The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is three retries.
- start
Period Number The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You may specify between 0 and 300 seconds. The startPeriod is disabled by default.
- timeout Number
The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5 seconds.
TaskDefinitionHostEntry, TaskDefinitionHostEntryArgs
- hostname str
- ip_
address str
TaskDefinitionHostVolumeProperties, TaskDefinitionHostVolumePropertiesArgs
- Source
Path string
- Source
Path string
- source
Path String
- source
Path string
- source_
path str
- source
Path String
TaskDefinitionInferenceAccelerator, TaskDefinitionInferenceAcceleratorArgs
- Device
Name string - Device
Type string
- Device
Name string - Device
Type string
- device
Name String - device
Type String
- device
Name string - device
Type string
- device_
name str - device_
type str
- device
Name String - device
Type String
TaskDefinitionKernelCapabilities, TaskDefinitionKernelCapabilitiesArgs
TaskDefinitionKeyValuePair, TaskDefinitionKeyValuePairArgs
TaskDefinitionLinuxParameters, TaskDefinitionLinuxParametersArgs
- capabilities Property Map
- devices List<Property Map>
- init
Process BooleanEnabled - max
Swap Number - Number
- swappiness Number
- tmpfs List<Property Map>
TaskDefinitionLogConfiguration, TaskDefinitionLogConfigurationArgs
- Log
Driver string - Options interface{}
- Secret
Options []TaskDefinition Secret
- log
Driver String - options Object
- secret
Options List<TaskDefinition Secret>
- log
Driver String - options Any
- secret
Options List<Property Map>
TaskDefinitionMountPoint, TaskDefinitionMountPointArgs
- Container
Path string - Read
Only bool - Source
Volume string
- Container
Path string - Read
Only bool - Source
Volume string
- container
Path String - read
Only Boolean - source
Volume String
- container
Path string - read
Only boolean - source
Volume string
- container_
path str - read_
only bool - source_
volume str
- container
Path String - read
Only Boolean - source
Volume String
TaskDefinitionPlacementConstraint, TaskDefinitionPlacementConstraintArgs
- Type string
- Expression string
- Type string
- Expression string
- type String
- expression String
- type string
- expression string
- type str
- expression str
- type String
- expression String
TaskDefinitionPortMapping, TaskDefinitionPortMappingArgs
- App
Protocol Pulumi.Aws Native. Ecs. Task Definition Port Mapping App Protocol - Container
Port int - Container
Port stringRange - Host
Port int - Name string
- Protocol string
- App
Protocol TaskDefinition Port Mapping App Protocol - Container
Port int - Container
Port stringRange - Host
Port int - Name string
- Protocol string
- app
Protocol TaskDefinition Port Mapping App Protocol - container
Port Integer - container
Port StringRange - host
Port Integer - name String
- protocol String
- app
Protocol TaskDefinition Port Mapping App Protocol - container
Port number - container
Port stringRange - host
Port number - name string
- protocol string
- app
Protocol "http" | "http2" | "grpc" - container
Port Number - container
Port StringRange - host
Port Number - name String
- protocol String
TaskDefinitionPortMappingAppProtocol, TaskDefinitionPortMappingAppProtocolArgs
- Http
- http
- Http2
- http2
- Grpc
- grpc
- Task
Definition Port Mapping App Protocol Http - http
- Task
Definition Port Mapping App Protocol Http2 - http2
- Task
Definition Port Mapping App Protocol Grpc - grpc
- Http
- http
- Http2
- http2
- Grpc
- grpc
- Http
- http
- Http2
- http2
- Grpc
- grpc
- HTTP
- http
- HTTP2
- http2
- GRPC
- grpc
- "http"
- http
- "http2"
- http2
- "grpc"
- grpc
TaskDefinitionProxyConfiguration, TaskDefinitionProxyConfigurationArgs
TaskDefinitionRepositoryCredentials, TaskDefinitionRepositoryCredentialsArgs
- Credentials
Parameter string
- Credentials
Parameter string
- credentials
Parameter String
- credentials
Parameter string
- credentials
Parameter String
TaskDefinitionResourceRequirement, TaskDefinitionResourceRequirementArgs
TaskDefinitionRuntimePlatform, TaskDefinitionRuntimePlatformArgs
- Cpu
Architecture string - Operating
System stringFamily
- Cpu
Architecture string - Operating
System stringFamily
- cpu
Architecture String - operating
System StringFamily
- cpu
Architecture string - operating
System stringFamily
- cpu
Architecture String - operating
System StringFamily
TaskDefinitionSecret, TaskDefinitionSecretArgs
- name str
- value_
from str
TaskDefinitionSystemControl, TaskDefinitionSystemControlArgs
TaskDefinitionTag, TaskDefinitionTagArgs
TaskDefinitionTmpfs, TaskDefinitionTmpfsArgs
- Size int
- Container
Path string - Mount
Options List<string>
- Size int
- Container
Path string - Mount
Options []string
- size Integer
- container
Path String - mount
Options List<String>
- size number
- container
Path string - mount
Options string[]
- size int
- container_
path str - mount_
options Sequence[str]
- size Number
- container
Path String - mount
Options List<String>
TaskDefinitionUlimit, TaskDefinitionUlimitArgs
- hard_
limit int - name str
- soft_
limit int
TaskDefinitionVolume, TaskDefinitionVolumeArgs
TaskDefinitionVolumeFrom, TaskDefinitionVolumeFromArgs
- Read
Only bool - Source
Container string
- Read
Only bool - Source
Container string
- read
Only Boolean - source
Container String
- read
Only boolean - source
Container string
- read_
only bool - source_
container str
- read
Only Boolean - source
Container String
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.