Show / Hide Table of Contents

Namespace Pulumi.Aws.Ecs

Classes

CapacityProvider

Provides an ECS cluster capacity provider. More information can be found on the ECS Developer Guide.

NOTE: The AWS API does not currently support deleting ECS cluster capacity providers. Removing this resource will only remove the state for it.

CapacityProviderArgs

CapacityProviderState

Cluster

Provides an ECS cluster.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var foo = new Aws.Ecs.Cluster("foo", new Aws.Ecs.ClusterArgs
    {
    });
}

}

ClusterArgs

ClusterState

GetCluster

GetClusterArgs

GetClusterResult

GetContainerDefinition

GetContainerDefinitionArgs

GetContainerDefinitionResult

GetService

GetServiceArgs

GetServiceResult

GetTaskDefinition

GetTaskDefinitionArgs

GetTaskDefinitionResult

Service

Note: To prevent a race condition during service deletion, make sure to set depends_on to the related aws.iam.RolePolicy; otherwise, the policy may be destroyed too soon and the ECS service will then get stuck in the DRAINING state.

Provides an ECS service - effectively a task that is expected to run until an error occurs or a user terminates it (typically a webserver or a database).

See ECS Services section in AWS developer guide.

Example Usage

Daemon Scheduling Strategy

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var bar = new Aws.Ecs.Service("bar", new Aws.Ecs.ServiceArgs
    {
        Cluster = aws_ecs_cluster.Foo.Id,
        SchedulingStrategy = "DAEMON",
        TaskDefinition = aws_ecs_task_definition.Bar.Arn,
    });
}

}

ServiceArgs

ServiceState

TaskDefinition

Manages a revision of an ECS task definition to be used in aws.ecs.Service.

TaskDefinitionArgs

TaskDefinitionState

Back to top Copyright 2016-2020, Pulumi Corporation.