1. Packages
  2. AWS Native
  3. API Docs
  4. ecs
  5. TaskDefinition

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.77.0 published on Wednesday, Sep 20, 2023 by Pulumi

aws-native.ecs.TaskDefinition

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.77.0 published on Wednesday, Sep 20, 2023 by Pulumi

    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:

    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.

    TaskDefinitionArn string

    The Amazon Resource Name (ARN) of the Amazon ECS task definition

    Id string

    The provider-assigned unique ID for this managed resource.

    TaskDefinitionArn string

    The Amazon Resource Name (ARN) of the Amazon ECS task definition

    id String

    The provider-assigned unique ID for this managed resource.

    taskDefinitionArn String

    The Amazon Resource Name (ARN) of the Amazon ECS task definition

    id string

    The provider-assigned unique ID for this managed resource.

    taskDefinitionArn string

    The Amazon Resource Name (ARN) of the Amazon ECS task definition

    id str

    The provider-assigned unique ID for this managed resource.

    task_definition_arn str

    The Amazon Resource Name (ARN) of the Amazon ECS task definition

    id String

    The provider-assigned unique ID for this managed resource.

    taskDefinitionArn String

    The Amazon Resource Name (ARN) of the Amazon ECS task definition

    Supporting Types

    TaskDefinitionAuthorizationConfig, TaskDefinitionAuthorizationConfigArgs

    TaskDefinitionAuthorizationConfigIam, TaskDefinitionAuthorizationConfigIamArgs

    Enabled
    ENABLED
    Disabled
    DISABLED
    TaskDefinitionAuthorizationConfigIamEnabled
    ENABLED
    TaskDefinitionAuthorizationConfigIamDisabled
    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
    DependsOn List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionContainerDependency>
    DisableNetworking bool
    DnsSearchDomains List<string>
    DnsServers List<string>
    DockerLabels object
    DockerSecurityOptions List<string>
    EntryPoint List<string>
    Environment List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionKeyValuePair>

    The environment variables to pass to a container

    EnvironmentFiles List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionEnvironmentFile>

    The list of one or more files that contain the environment variables to pass to a container

    Essential bool
    ExtraHosts List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionHostEntry>
    FirelensConfiguration Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionFirelensConfiguration
    HealthCheck Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionHealthCheck
    Hostname string
    Interactive bool
    Links List<string>
    LinuxParameters Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionLinuxParameters
    LogConfiguration Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionLogConfiguration
    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.

    MemoryReservation int
    MountPoints List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionMountPoint>
    PortMappings List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionPortMapping>

    Port mappings allow containers to access ports on the host container instance to send or receive traffic.

    Privileged bool
    PseudoTerminal bool
    ReadonlyRootFilesystem bool
    RepositoryCredentials Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionRepositoryCredentials
    ResourceRequirements List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionResourceRequirement>
    Secrets List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionSecret>
    StartTimeout int
    StopTimeout int
    SystemControls List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionSystemControl>
    Ulimits List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionUlimit>
    User string
    VolumesFrom List<Pulumi.AwsNative.Ecs.Inputs.TaskDefinitionVolumeFrom>
    WorkingDirectory 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
    DependsOn []TaskDefinitionContainerDependency
    DisableNetworking bool
    DnsSearchDomains []string
    DnsServers []string
    DockerLabels interface{}
    DockerSecurityOptions []string
    EntryPoint []string
    Environment []TaskDefinitionKeyValuePair

    The environment variables to pass to a container

    EnvironmentFiles []TaskDefinitionEnvironmentFile

    The list of one or more files that contain the environment variables to pass to a container

    Essential bool
    ExtraHosts []TaskDefinitionHostEntry
    FirelensConfiguration TaskDefinitionFirelensConfiguration
    HealthCheck TaskDefinitionHealthCheck
    Hostname string
    Interactive bool
    Links []string
    LinuxParameters TaskDefinitionLinuxParameters
    LogConfiguration TaskDefinitionLogConfiguration
    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.

    MemoryReservation int
    MountPoints []TaskDefinitionMountPoint
    PortMappings []TaskDefinitionPortMapping

    Port mappings allow containers to access ports on the host container instance to send or receive traffic.

    Privileged bool
    PseudoTerminal bool
    ReadonlyRootFilesystem bool
    RepositoryCredentials TaskDefinitionRepositoryCredentials
    ResourceRequirements []TaskDefinitionResourceRequirement
    Secrets []TaskDefinitionSecret
    StartTimeout int
    StopTimeout int
    SystemControls []TaskDefinitionSystemControl
    Ulimits []TaskDefinitionUlimit
    User string
    VolumesFrom []TaskDefinitionVolumeFrom
    WorkingDirectory 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
    dependsOn List<TaskDefinitionContainerDependency>
    disableNetworking Boolean
    dnsSearchDomains List<String>
    dnsServers List<String>
    dockerLabels Object
    dockerSecurityOptions List<String>
    entryPoint List<String>
    environment List<TaskDefinitionKeyValuePair>

    The environment variables to pass to a container

    environmentFiles List<TaskDefinitionEnvironmentFile>

    The list of one or more files that contain the environment variables to pass to a container

    essential Boolean
    extraHosts List<TaskDefinitionHostEntry>
    firelensConfiguration TaskDefinitionFirelensConfiguration
    healthCheck TaskDefinitionHealthCheck
    hostname String
    interactive Boolean
    links List<String>
    linuxParameters TaskDefinitionLinuxParameters
    logConfiguration TaskDefinitionLogConfiguration
    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.

    memoryReservation Integer
    mountPoints List<TaskDefinitionMountPoint>
    portMappings List<TaskDefinitionPortMapping>

    Port mappings allow containers to access ports on the host container instance to send or receive traffic.

    privileged Boolean
    pseudoTerminal Boolean
    readonlyRootFilesystem Boolean
    repositoryCredentials TaskDefinitionRepositoryCredentials
    resourceRequirements List<TaskDefinitionResourceRequirement>
    secrets List<TaskDefinitionSecret>
    startTimeout Integer
    stopTimeout Integer
    systemControls List<TaskDefinitionSystemControl>
    ulimits List<TaskDefinitionUlimit>
    user String
    volumesFrom List<TaskDefinitionVolumeFrom>
    workingDirectory 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
    dependsOn TaskDefinitionContainerDependency[]
    disableNetworking boolean
    dnsSearchDomains string[]
    dnsServers string[]
    dockerLabels any
    dockerSecurityOptions string[]
    entryPoint string[]
    environment TaskDefinitionKeyValuePair[]

    The environment variables to pass to a container

    environmentFiles TaskDefinitionEnvironmentFile[]

    The list of one or more files that contain the environment variables to pass to a container

    essential boolean
    extraHosts TaskDefinitionHostEntry[]
    firelensConfiguration TaskDefinitionFirelensConfiguration
    healthCheck TaskDefinitionHealthCheck
    hostname string
    interactive boolean
    links string[]
    linuxParameters TaskDefinitionLinuxParameters
    logConfiguration TaskDefinitionLogConfiguration
    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.

    memoryReservation number
    mountPoints TaskDefinitionMountPoint[]
    portMappings TaskDefinitionPortMapping[]

    Port mappings allow containers to access ports on the host container instance to send or receive traffic.

    privileged boolean
    pseudoTerminal boolean
    readonlyRootFilesystem boolean
    repositoryCredentials TaskDefinitionRepositoryCredentials
    resourceRequirements TaskDefinitionResourceRequirement[]
    secrets TaskDefinitionSecret[]
    startTimeout number
    stopTimeout number
    systemControls TaskDefinitionSystemControl[]
    ulimits TaskDefinitionUlimit[]
    user string
    volumesFrom TaskDefinitionVolumeFrom[]
    workingDirectory 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[TaskDefinitionContainerDependency]
    disable_networking bool
    dns_search_domains Sequence[str]
    dns_servers Sequence[str]
    docker_labels Any
    docker_security_options Sequence[str]
    entry_point Sequence[str]
    environment Sequence[TaskDefinitionKeyValuePair]

    The environment variables to pass to a container

    environment_files Sequence[TaskDefinitionEnvironmentFile]

    The list of one or more files that contain the environment variables to pass to a container

    essential bool
    extra_hosts Sequence[TaskDefinitionHostEntry]
    firelens_configuration TaskDefinitionFirelensConfiguration
    health_check TaskDefinitionHealthCheck
    hostname str
    interactive bool
    links Sequence[str]
    linux_parameters TaskDefinitionLinuxParameters
    log_configuration TaskDefinitionLogConfiguration
    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[TaskDefinitionMountPoint]
    port_mappings Sequence[TaskDefinitionPortMapping]

    Port mappings allow containers to access ports on the host container instance to send or receive traffic.

    privileged bool
    pseudo_terminal bool
    readonly_root_filesystem bool
    repository_credentials TaskDefinitionRepositoryCredentials
    resource_requirements Sequence[TaskDefinitionResourceRequirement]
    secrets Sequence[TaskDefinitionSecret]
    start_timeout int
    stop_timeout int
    system_controls Sequence[TaskDefinitionSystemControl]
    ulimits Sequence[TaskDefinitionUlimit]
    user str
    volumes_from Sequence[TaskDefinitionVolumeFrom]
    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
    dependsOn List<Property Map>
    disableNetworking Boolean
    dnsSearchDomains List<String>
    dnsServers List<String>
    dockerLabels Any
    dockerSecurityOptions List<String>
    entryPoint List<String>
    environment List<Property Map>

    The environment variables to pass to a container

    environmentFiles List<Property Map>

    The list of one or more files that contain the environment variables to pass to a container

    essential Boolean
    extraHosts List<Property Map>
    firelensConfiguration Property Map
    healthCheck Property Map
    hostname String
    interactive Boolean
    links List<String>
    linuxParameters Property Map
    logConfiguration 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.

    memoryReservation Number
    mountPoints List<Property Map>
    portMappings List<Property Map>

    Port mappings allow containers to access ports on the host container instance to send or receive traffic.

    privileged Boolean
    pseudoTerminal Boolean
    readonlyRootFilesystem Boolean
    repositoryCredentials Property Map
    resourceRequirements List<Property Map>
    secrets List<Property Map>
    startTimeout Number
    stopTimeout Number
    systemControls List<Property Map>
    ulimits List<Property Map>
    user String
    volumesFrom List<Property Map>
    workingDirectory String

    TaskDefinitionContainerDependency, TaskDefinitionContainerDependencyArgs

    TaskDefinitionDevice, TaskDefinitionDeviceArgs

    ContainerPath string
    HostPath string
    Permissions List<string>
    ContainerPath string
    HostPath string
    Permissions []string
    containerPath String
    hostPath String
    permissions List<String>
    containerPath string
    hostPath string
    permissions string[]
    containerPath String
    hostPath String
    permissions List<String>

    TaskDefinitionDockerVolumeConfiguration, TaskDefinitionDockerVolumeConfigurationArgs

    Autoprovision bool
    Driver string
    DriverOpts object
    Labels object
    Scope string
    Autoprovision bool
    Driver string
    DriverOpts interface{}
    Labels interface{}
    Scope string
    autoprovision Boolean
    driver String
    driverOpts Object
    labels Object
    scope String
    autoprovision boolean
    driver string
    driverOpts any
    labels any
    scope string
    autoprovision Boolean
    driver String
    driverOpts Any
    labels Any
    scope String

    TaskDefinitionEfsVolumeConfiguration, TaskDefinitionEfsVolumeConfigurationArgs

    TaskDefinitionEfsVolumeConfigurationTransitEncryption, TaskDefinitionEfsVolumeConfigurationTransitEncryptionArgs

    Enabled
    ENABLED
    Disabled
    DISABLED
    TaskDefinitionEfsVolumeConfigurationTransitEncryptionEnabled
    ENABLED
    TaskDefinitionEfsVolumeConfigurationTransitEncryptionDisabled
    DISABLED
    Enabled
    ENABLED
    Disabled
    DISABLED
    Enabled
    ENABLED
    Disabled
    DISABLED
    ENABLED
    ENABLED
    DISABLED
    DISABLED
    "ENABLED"
    ENABLED
    "DISABLED"
    DISABLED

    TaskDefinitionEnvironmentFile, TaskDefinitionEnvironmentFileArgs

    Type string
    Value string
    Type string
    Value string
    type String
    value String
    type string
    value string
    type str
    value str
    type String
    value String

    TaskDefinitionEphemeralStorage, TaskDefinitionEphemeralStorageArgs

    sizeInGiB Integer
    sizeInGiB number
    sizeInGiB Number

    TaskDefinitionFirelensConfiguration, TaskDefinitionFirelensConfigurationArgs

    Options object
    Type string
    Options interface{}
    Type string
    options Object
    type String
    options any
    type string
    options Any
    type str
    options Any
    type String

    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.

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

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

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

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

    startPeriod 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 string
    IpAddress string
    Hostname string
    IpAddress string
    hostname String
    ipAddress String
    hostname string
    ipAddress string
    hostname String
    ipAddress String

    TaskDefinitionHostVolumeProperties, TaskDefinitionHostVolumePropertiesArgs

    SourcePath string
    SourcePath string
    sourcePath String
    sourcePath string
    sourcePath String

    TaskDefinitionInferenceAccelerator, TaskDefinitionInferenceAcceleratorArgs

    DeviceName string
    DeviceType string
    DeviceName string
    DeviceType string
    deviceName String
    deviceType String
    deviceName string
    deviceType string
    deviceName String
    deviceType String

    TaskDefinitionKernelCapabilities, TaskDefinitionKernelCapabilitiesArgs

    Add List<string>
    Drop List<string>
    Add []string
    Drop []string
    add List<String>
    drop List<String>
    add string[]
    drop string[]
    add Sequence[str]
    drop Sequence[str]
    add List<String>
    drop List<String>

    TaskDefinitionKeyValuePair, TaskDefinitionKeyValuePairArgs

    Name string
    Value string
    Name string
    Value string
    name String
    value String
    name string
    value string
    name str
    value str
    name String
    value String

    TaskDefinitionLinuxParameters, TaskDefinitionLinuxParametersArgs

    TaskDefinitionLogConfiguration, TaskDefinitionLogConfigurationArgs

    TaskDefinitionMountPoint, TaskDefinitionMountPointArgs

    containerPath String
    readOnly Boolean
    sourceVolume String
    containerPath string
    readOnly boolean
    sourceVolume string
    containerPath String
    readOnly Boolean
    sourceVolume String

    TaskDefinitionPlacementConstraint, TaskDefinitionPlacementConstraintArgs

    Type string
    Expression string
    Type string
    Expression string
    type String
    expression String
    type string
    expression string
    type String
    expression String

    TaskDefinitionPortMapping, TaskDefinitionPortMappingArgs

    TaskDefinitionPortMappingAppProtocol, TaskDefinitionPortMappingAppProtocolArgs

    Http
    http
    Http2
    http2
    Grpc
    grpc
    TaskDefinitionPortMappingAppProtocolHttp
    http
    TaskDefinitionPortMappingAppProtocolHttp2
    http2
    TaskDefinitionPortMappingAppProtocolGrpc
    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

    TaskDefinitionResourceRequirement, TaskDefinitionResourceRequirementArgs

    Type string
    Value string
    Type string
    Value string
    type String
    value String
    type string
    value string
    type str
    value str
    type String
    value String

    TaskDefinitionRuntimePlatform, TaskDefinitionRuntimePlatformArgs

    TaskDefinitionSecret, TaskDefinitionSecretArgs

    Name string
    ValueFrom string
    Name string
    ValueFrom string
    name String
    valueFrom String
    name string
    valueFrom string
    name String
    valueFrom String

    TaskDefinitionSystemControl, TaskDefinitionSystemControlArgs

    Namespace string
    Value string
    Namespace string
    Value string
    namespace String
    value String
    namespace string
    value string
    namespace String
    value String

    TaskDefinitionTag, TaskDefinitionTagArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    TaskDefinitionTmpfs, TaskDefinitionTmpfsArgs

    Size int
    ContainerPath string
    MountOptions List<string>
    Size int
    ContainerPath string
    MountOptions []string
    size Integer
    containerPath String
    mountOptions List<String>
    size number
    containerPath string
    mountOptions string[]
    size int
    container_path str
    mount_options Sequence[str]
    size Number
    containerPath String
    mountOptions List<String>

    TaskDefinitionUlimit, TaskDefinitionUlimitArgs

    HardLimit int
    Name string
    SoftLimit int
    HardLimit int
    Name string
    SoftLimit int
    hardLimit Integer
    name String
    softLimit Integer
    hardLimit number
    name string
    softLimit number
    hardLimit Number
    name String
    softLimit Number

    TaskDefinitionVolume, TaskDefinitionVolumeArgs

    TaskDefinitionVolumeFrom, TaskDefinitionVolumeFromArgs

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.77.0 published on Wednesday, Sep 20, 2023 by Pulumi