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

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

AWS Native v0.78.0 published on Wednesday, Sep 27, 2023 by Pulumi

aws-native.ecs.Cluster

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.78.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Create an Elastic Container Service (ECS) cluster.

    Create Cluster Resource

    new Cluster(name: string, args?: ClusterArgs, opts?: CustomResourceOptions);
    @overload
    def Cluster(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                capacity_providers: Optional[Sequence[str]] = None,
                cluster_name: Optional[str] = None,
                cluster_settings: Optional[Sequence[ClusterSettingsArgs]] = None,
                configuration: Optional[ClusterConfigurationArgs] = None,
                default_capacity_provider_strategy: Optional[Sequence[ClusterCapacityProviderStrategyItemArgs]] = None,
                service_connect_defaults: Optional[ClusterServiceConnectDefaultsArgs] = None,
                tags: Optional[Sequence[ClusterTagArgs]] = None)
    @overload
    def Cluster(resource_name: str,
                args: Optional[ClusterArgs] = None,
                opts: Optional[ResourceOptions] = None)
    func NewCluster(ctx *Context, name string, args *ClusterArgs, opts ...ResourceOption) (*Cluster, error)
    public Cluster(string name, ClusterArgs? args = null, CustomResourceOptions? opts = null)
    public Cluster(String name, ClusterArgs args)
    public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
    
    type: aws-native:ecs:Cluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ClusterArgs
    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 ClusterArgs
    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 ClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Cluster 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 Cluster resource accepts the following input properties:

    CapacityProviders []string
    ClusterName string

    A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.

    ClusterSettings []ClusterSettingsArgs
    Configuration ClusterConfigurationArgs
    DefaultCapacityProviderStrategy []ClusterCapacityProviderStrategyItemArgs
    ServiceConnectDefaults ClusterServiceConnectDefaultsArgs
    Tags []ClusterTagArgs
    capacityProviders List<String>
    clusterName String

    A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.

    clusterSettings List<ClusterSettings>
    configuration ClusterConfiguration
    defaultCapacityProviderStrategy List<ClusterCapacityProviderStrategyItem>
    serviceConnectDefaults ClusterServiceConnectDefaults
    tags List<ClusterTag>
    capacityProviders string[]
    clusterName string

    A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.

    clusterSettings ClusterSettings[]
    configuration ClusterConfiguration
    defaultCapacityProviderStrategy ClusterCapacityProviderStrategyItem[]
    serviceConnectDefaults ClusterServiceConnectDefaults
    tags ClusterTag[]
    capacityProviders List<String>
    clusterName String

    A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.

    clusterSettings List<Property Map>
    configuration Property Map
    defaultCapacityProviderStrategy List<Property Map>
    serviceConnectDefaults Property Map
    tags List<Property Map>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:

    Arn string

    The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

    Id string

    The provider-assigned unique ID for this managed resource.

    Arn string

    The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

    Id string

    The provider-assigned unique ID for this managed resource.

    arn String

    The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

    id String

    The provider-assigned unique ID for this managed resource.

    arn string

    The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

    id string

    The provider-assigned unique ID for this managed resource.

    arn str

    The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

    id str

    The provider-assigned unique ID for this managed resource.

    arn String

    The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

    id String

    The provider-assigned unique ID for this managed resource.

    Supporting Types

    ClusterCapacityProviderStrategyItem, ClusterCapacityProviderStrategyItemArgs

    base Integer
    capacityProvider String
    weight Integer
    base number
    capacityProvider string
    weight number
    base Number
    capacityProvider String
    weight Number

    ClusterConfiguration, ClusterConfigurationArgs

    ClusterExecuteCommandConfiguration, ClusterExecuteCommandConfigurationArgs

    ClusterExecuteCommandLogConfiguration, ClusterExecuteCommandLogConfigurationArgs

    ClusterServiceConnectDefaults, ClusterServiceConnectDefaultsArgs

    Namespace string

    Service Connect Namespace Name or ARN default for all services or tasks within this cluster

    Namespace string

    Service Connect Namespace Name or ARN default for all services or tasks within this cluster

    namespace String

    Service Connect Namespace Name or ARN default for all services or tasks within this cluster

    namespace string

    Service Connect Namespace Name or ARN default for all services or tasks within this cluster

    namespace str

    Service Connect Namespace Name or ARN default for all services or tasks within this cluster

    namespace String

    Service Connect Namespace Name or ARN default for all services or tasks within this cluster

    ClusterSettings, ClusterSettingsArgs

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

    ClusterTag, ClusterTagArgs

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

    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.78.0 published on Wednesday, Sep 27, 2023 by Pulumi