We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.ecs.getCluster
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
The AWS::ECS::Cluster resource creates an Amazon Elastic Container Service (Amazon ECS) cluster.
Using getCluster
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function getClusterOutput(args: GetClusterOutputArgs, opts?: InvokeOptions): Output<GetClusterResult>def get_cluster(cluster_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(cluster_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetClusterResult]func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)
func LookupClusterOutput(ctx *Context, args *LookupClusterOutputArgs, opts ...InvokeOption) LookupClusterResultOutput> Note: This function is named LookupCluster in the Go SDK.
public static class GetCluster 
{
    public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
    public static Output<GetClusterResult> Invoke(GetClusterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
public static Output<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:ecs:getCluster
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ClusterName string
- A user-generated string that you use to identify your cluster. If you don't specify a name, CFNlong generates a unique physical ID for the name.
- ClusterName string
- A user-generated string that you use to identify your cluster. If you don't specify a name, CFNlong generates a unique physical ID for the name.
- clusterName String
- A user-generated string that you use to identify your cluster. If you don't specify a name, CFNlong generates a unique physical ID for the name.
- clusterName string
- A user-generated string that you use to identify your cluster. If you don't specify a name, CFNlong generates a unique physical ID for the name.
- cluster_name str
- A user-generated string that you use to identify your cluster. If you don't specify a name, CFNlong generates a unique physical ID for the name.
- clusterName String
- A user-generated string that you use to identify your cluster. If you don't specify a name, CFNlong generates a unique physical ID for the name.
getCluster Result
The following output properties are available:
- Arn string
- The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- CapacityProviders List<string>
- The short name of one or more capacity providers to associate with the cluster. A capacity provider must be associated with a cluster before it can be included as part of the default capacity provider strategy of the cluster or used in a capacity provider strategy when calling the CreateService or RunTask actions.
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must be created but not associated with another cluster. New Auto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.
To use a FARGATElong capacity provider, specify either the FARGATEorFARGATE_SPOTcapacity providers. The FARGATElong capacity providers are available to all accounts and only need to be associated with a cluster to be used. The PutCapacityProvider API operation is used to update the list of available capacity providers for a cluster after the cluster is created.
- ClusterSettings List<Pulumi.Aws Native. Ecs. Outputs. Cluster Settings> 
- The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights with enhanced observability or CloudWatch Container Insights for a cluster. Container Insights with enhanced observability provides all the Container Insights metrics, plus additional task and container metrics. This version supports enhanced observability for Amazon ECS clusters using the Amazon EC2 and Fargate launch types. After you configure Container Insights with enhanced observability on Amazon ECS, Container Insights auto-collects detailed infrastructure telemetry from the cluster level down to the container level in your environment and displays these critical performance data in curated dashboards removing the heavy lifting in observability set-up. For more information, see Monitor Amazon ECS containers using Container Insights with enhanced observability in the Amazon Elastic Container Service Developer Guide.
- Configuration
Pulumi.Aws Native. Ecs. Outputs. Cluster Configuration 
- The execute command and managed storage configuration for the cluster.
- DefaultCapacity List<Pulumi.Provider Strategy Aws Native. Ecs. Outputs. Cluster Capacity Provider Strategy Item> 
- The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
 
- Arn string
- The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- CapacityProviders []string
- The short name of one or more capacity providers to associate with the cluster. A capacity provider must be associated with a cluster before it can be included as part of the default capacity provider strategy of the cluster or used in a capacity provider strategy when calling the CreateService or RunTask actions.
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must be created but not associated with another cluster. New Auto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.
To use a FARGATElong capacity provider, specify either the FARGATEorFARGATE_SPOTcapacity providers. The FARGATElong capacity providers are available to all accounts and only need to be associated with a cluster to be used. The PutCapacityProvider API operation is used to update the list of available capacity providers for a cluster after the cluster is created.
- ClusterSettings []ClusterSettings 
- The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights with enhanced observability or CloudWatch Container Insights for a cluster. Container Insights with enhanced observability provides all the Container Insights metrics, plus additional task and container metrics. This version supports enhanced observability for Amazon ECS clusters using the Amazon EC2 and Fargate launch types. After you configure Container Insights with enhanced observability on Amazon ECS, Container Insights auto-collects detailed infrastructure telemetry from the cluster level down to the container level in your environment and displays these critical performance data in curated dashboards removing the heavy lifting in observability set-up. For more information, see Monitor Amazon ECS containers using Container Insights with enhanced observability in the Amazon Elastic Container Service Developer Guide.
- Configuration
ClusterConfiguration 
- The execute command and managed storage configuration for the cluster.
- DefaultCapacity []ClusterProvider Strategy Capacity Provider Strategy Item 
- The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
- Tag
- The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
 
- arn String
- The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- capacityProviders List<String>
- The short name of one or more capacity providers to associate with the cluster. A capacity provider must be associated with a cluster before it can be included as part of the default capacity provider strategy of the cluster or used in a capacity provider strategy when calling the CreateService or RunTask actions.
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must be created but not associated with another cluster. New Auto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.
To use a FARGATElong capacity provider, specify either the FARGATEorFARGATE_SPOTcapacity providers. The FARGATElong capacity providers are available to all accounts and only need to be associated with a cluster to be used. The PutCapacityProvider API operation is used to update the list of available capacity providers for a cluster after the cluster is created.
- clusterSettings List<ClusterSettings> 
- The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights with enhanced observability or CloudWatch Container Insights for a cluster. Container Insights with enhanced observability provides all the Container Insights metrics, plus additional task and container metrics. This version supports enhanced observability for Amazon ECS clusters using the Amazon EC2 and Fargate launch types. After you configure Container Insights with enhanced observability on Amazon ECS, Container Insights auto-collects detailed infrastructure telemetry from the cluster level down to the container level in your environment and displays these critical performance data in curated dashboards removing the heavy lifting in observability set-up. For more information, see Monitor Amazon ECS containers using Container Insights with enhanced observability in the Amazon Elastic Container Service Developer Guide.
- configuration
ClusterConfiguration 
- The execute command and managed storage configuration for the cluster.
- defaultCapacity List<ClusterProvider Strategy Capacity Provider Strategy Item> 
- The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
- List<Tag>
- The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
 
- arn string
- The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- capacityProviders string[]
- The short name of one or more capacity providers to associate with the cluster. A capacity provider must be associated with a cluster before it can be included as part of the default capacity provider strategy of the cluster or used in a capacity provider strategy when calling the CreateService or RunTask actions.
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must be created but not associated with another cluster. New Auto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.
To use a FARGATElong capacity provider, specify either the FARGATEorFARGATE_SPOTcapacity providers. The FARGATElong capacity providers are available to all accounts and only need to be associated with a cluster to be used. The PutCapacityProvider API operation is used to update the list of available capacity providers for a cluster after the cluster is created.
- clusterSettings ClusterSettings[] 
- The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights with enhanced observability or CloudWatch Container Insights for a cluster. Container Insights with enhanced observability provides all the Container Insights metrics, plus additional task and container metrics. This version supports enhanced observability for Amazon ECS clusters using the Amazon EC2 and Fargate launch types. After you configure Container Insights with enhanced observability on Amazon ECS, Container Insights auto-collects detailed infrastructure telemetry from the cluster level down to the container level in your environment and displays these critical performance data in curated dashboards removing the heavy lifting in observability set-up. For more information, see Monitor Amazon ECS containers using Container Insights with enhanced observability in the Amazon Elastic Container Service Developer Guide.
- configuration
ClusterConfiguration 
- The execute command and managed storage configuration for the cluster.
- defaultCapacity ClusterProvider Strategy Capacity Provider Strategy Item[] 
- The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
- Tag[]
- The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
 
- arn str
- The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- capacity_providers Sequence[str]
- The short name of one or more capacity providers to associate with the cluster. A capacity provider must be associated with a cluster before it can be included as part of the default capacity provider strategy of the cluster or used in a capacity provider strategy when calling the CreateService or RunTask actions.
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must be created but not associated with another cluster. New Auto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.
To use a FARGATElong capacity provider, specify either the FARGATEorFARGATE_SPOTcapacity providers. The FARGATElong capacity providers are available to all accounts and only need to be associated with a cluster to be used. The PutCapacityProvider API operation is used to update the list of available capacity providers for a cluster after the cluster is created.
- cluster_settings Sequence[ClusterSettings] 
- The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights with enhanced observability or CloudWatch Container Insights for a cluster. Container Insights with enhanced observability provides all the Container Insights metrics, plus additional task and container metrics. This version supports enhanced observability for Amazon ECS clusters using the Amazon EC2 and Fargate launch types. After you configure Container Insights with enhanced observability on Amazon ECS, Container Insights auto-collects detailed infrastructure telemetry from the cluster level down to the container level in your environment and displays these critical performance data in curated dashboards removing the heavy lifting in observability set-up. For more information, see Monitor Amazon ECS containers using Container Insights with enhanced observability in the Amazon Elastic Container Service Developer Guide.
- configuration
ClusterConfiguration 
- The execute command and managed storage configuration for the cluster.
- default_capacity_ Sequence[Clusterprovider_ strategy Capacity Provider Strategy Item] 
- The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
- Sequence[root_Tag]
- The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
 
- arn String
- The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- capacityProviders List<String>
- The short name of one or more capacity providers to associate with the cluster. A capacity provider must be associated with a cluster before it can be included as part of the default capacity provider strategy of the cluster or used in a capacity provider strategy when calling the CreateService or RunTask actions.
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must be created but not associated with another cluster. New Auto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.
To use a FARGATElong capacity provider, specify either the FARGATEorFARGATE_SPOTcapacity providers. The FARGATElong capacity providers are available to all accounts and only need to be associated with a cluster to be used. The PutCapacityProvider API operation is used to update the list of available capacity providers for a cluster after the cluster is created.
- clusterSettings List<Property Map>
- The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights with enhanced observability or CloudWatch Container Insights for a cluster. Container Insights with enhanced observability provides all the Container Insights metrics, plus additional task and container metrics. This version supports enhanced observability for Amazon ECS clusters using the Amazon EC2 and Fargate launch types. After you configure Container Insights with enhanced observability on Amazon ECS, Container Insights auto-collects detailed infrastructure telemetry from the cluster level down to the container level in your environment and displays these critical performance data in curated dashboards removing the heavy lifting in observability set-up. For more information, see Monitor Amazon ECS containers using Container Insights with enhanced observability in the Amazon Elastic Container Service Developer Guide.
- configuration Property Map
- The execute command and managed storage configuration for the cluster.
- defaultCapacity List<Property Map>Provider Strategy 
- The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
- List<Property Map>
- The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
 
Supporting Types
ClusterCapacityProviderStrategyItem    
- Base int
- The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0is used.
- CapacityProvider string
- The short name of the capacity provider.
- Weight int
- The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weightvalue is taken into consideration after thebasevalue, if defined, is satisfied. If noweightvalue is specified, the default value of0is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of0can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of0, anyRunTaskorCreateServiceactions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of1, then when thebaseis satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of1for capacityProviderA and a weight of4for capacityProviderB, then for every one task that's run using capacityProviderA, four tasks would use capacityProviderB.
- Base int
- The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0is used.
- CapacityProvider string
- The short name of the capacity provider.
- Weight int
- The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weightvalue is taken into consideration after thebasevalue, if defined, is satisfied. If noweightvalue is specified, the default value of0is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of0can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of0, anyRunTaskorCreateServiceactions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of1, then when thebaseis satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of1for capacityProviderA and a weight of4for capacityProviderB, then for every one task that's run using capacityProviderA, four tasks would use capacityProviderB.
- base Integer
- The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0is used.
- capacityProvider String
- The short name of the capacity provider.
- weight Integer
- The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weightvalue is taken into consideration after thebasevalue, if defined, is satisfied. If noweightvalue is specified, the default value of0is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of0can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of0, anyRunTaskorCreateServiceactions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of1, then when thebaseis satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of1for capacityProviderA and a weight of4for capacityProviderB, then for every one task that's run using capacityProviderA, four tasks would use capacityProviderB.
- base number
- The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0is used.
- capacityProvider string
- The short name of the capacity provider.
- weight number
- The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weightvalue is taken into consideration after thebasevalue, if defined, is satisfied. If noweightvalue is specified, the default value of0is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of0can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of0, anyRunTaskorCreateServiceactions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of1, then when thebaseis satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of1for capacityProviderA and a weight of4for capacityProviderB, then for every one task that's run using capacityProviderA, four tasks would use capacityProviderB.
- base int
- The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0is used.
- capacity_provider str
- The short name of the capacity provider.
- weight int
- The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weightvalue is taken into consideration after thebasevalue, if defined, is satisfied. If noweightvalue is specified, the default value of0is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of0can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of0, anyRunTaskorCreateServiceactions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of1, then when thebaseis satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of1for capacityProviderA and a weight of4for capacityProviderB, then for every one task that's run using capacityProviderA, four tasks would use capacityProviderB.
- base Number
- The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0is used.
- capacityProvider String
- The short name of the capacity provider.
- weight Number
- The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weightvalue is taken into consideration after thebasevalue, if defined, is satisfied. If noweightvalue is specified, the default value of0is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of0can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of0, anyRunTaskorCreateServiceactions using the capacity provider strategy will fail. An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of1, then when thebaseis satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of1for capacityProviderA and a weight of4for capacityProviderB, then for every one task that's run using capacityProviderA, four tasks would use capacityProviderB.
ClusterConfiguration 
- ExecuteCommand Pulumi.Configuration Aws Native. Ecs. Inputs. Cluster Execute Command Configuration 
- The details of the execute command configuration.
- ManagedStorage Pulumi.Configuration Aws Native. Ecs. Inputs. Cluster Managed Storage Configuration 
- The details of the managed storage configuration.
- ExecuteCommand ClusterConfiguration Execute Command Configuration 
- The details of the execute command configuration.
- ManagedStorage ClusterConfiguration Managed Storage Configuration 
- The details of the managed storage configuration.
- executeCommand ClusterConfiguration Execute Command Configuration 
- The details of the execute command configuration.
- managedStorage ClusterConfiguration Managed Storage Configuration 
- The details of the managed storage configuration.
- executeCommand ClusterConfiguration Execute Command Configuration 
- The details of the execute command configuration.
- managedStorage ClusterConfiguration Managed Storage Configuration 
- The details of the managed storage configuration.
- execute_command_ Clusterconfiguration Execute Command Configuration 
- The details of the execute command configuration.
- managed_storage_ Clusterconfiguration Managed Storage Configuration 
- The details of the managed storage configuration.
- executeCommand Property MapConfiguration 
- The details of the execute command configuration.
- managedStorage Property MapConfiguration 
- The details of the managed storage configuration.
ClusterExecuteCommandConfiguration   
- KmsKey stringId 
- Specify an KMSlong key ID to encrypt the data between the local client and the container.
- LogConfiguration Pulumi.Aws Native. Ecs. Inputs. Cluster Execute Command Log Configuration 
- The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDEis specified, alogConfigurationmust be provided.
- Logging string
- The log setting to use for redirecting logs for your execute command results. The following log settings are available.- NONE: The execute command session is not logged.
- DEFAULT: The- awslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no- awslogslog driver is configured in the task definition, the output won't be logged.
- OVERRIDE: Specify the logging details as a part of- logConfiguration. If the- OVERRIDElogging option is specified, the- logConfigurationis required.
 
- KmsKey stringId 
- Specify an KMSlong key ID to encrypt the data between the local client and the container.
- LogConfiguration ClusterExecute Command Log Configuration 
- The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDEis specified, alogConfigurationmust be provided.
- Logging string
- The log setting to use for redirecting logs for your execute command results. The following log settings are available.- NONE: The execute command session is not logged.
- DEFAULT: The- awslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no- awslogslog driver is configured in the task definition, the output won't be logged.
- OVERRIDE: Specify the logging details as a part of- logConfiguration. If the- OVERRIDElogging option is specified, the- logConfigurationis required.
 
- kmsKey StringId 
- Specify an KMSlong key ID to encrypt the data between the local client and the container.
- logConfiguration ClusterExecute Command Log Configuration 
- The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDEis specified, alogConfigurationmust be provided.
- logging String
- The log setting to use for redirecting logs for your execute command results. The following log settings are available.- NONE: The execute command session is not logged.
- DEFAULT: The- awslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no- awslogslog driver is configured in the task definition, the output won't be logged.
- OVERRIDE: Specify the logging details as a part of- logConfiguration. If the- OVERRIDElogging option is specified, the- logConfigurationis required.
 
- kmsKey stringId 
- Specify an KMSlong key ID to encrypt the data between the local client and the container.
- logConfiguration ClusterExecute Command Log Configuration 
- The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDEis specified, alogConfigurationmust be provided.
- logging string
- The log setting to use for redirecting logs for your execute command results. The following log settings are available.- NONE: The execute command session is not logged.
- DEFAULT: The- awslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no- awslogslog driver is configured in the task definition, the output won't be logged.
- OVERRIDE: Specify the logging details as a part of- logConfiguration. If the- OVERRIDElogging option is specified, the- logConfigurationis required.
 
- kms_key_ strid 
- Specify an KMSlong key ID to encrypt the data between the local client and the container.
- log_configuration ClusterExecute Command Log Configuration 
- The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDEis specified, alogConfigurationmust be provided.
- logging str
- The log setting to use for redirecting logs for your execute command results. The following log settings are available.- NONE: The execute command session is not logged.
- DEFAULT: The- awslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no- awslogslog driver is configured in the task definition, the output won't be logged.
- OVERRIDE: Specify the logging details as a part of- logConfiguration. If the- OVERRIDElogging option is specified, the- logConfigurationis required.
 
- kmsKey StringId 
- Specify an KMSlong key ID to encrypt the data between the local client and the container.
- logConfiguration Property Map
- The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDEis specified, alogConfigurationmust be provided.
- logging String
- The log setting to use for redirecting logs for your execute command results. The following log settings are available.- NONE: The execute command session is not logged.
- DEFAULT: The- awslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no- awslogslog driver is configured in the task definition, the output won't be logged.
- OVERRIDE: Specify the logging details as a part of- logConfiguration. If the- OVERRIDElogging option is specified, the- logConfigurationis required.
 
ClusterExecuteCommandLogConfiguration    
- CloudWatch boolEncryption Enabled 
- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
- CloudWatch stringLog Group Name 
- The name of the CloudWatch log group to send logs to. The CloudWatch log group must already be created.
- S3BucketName string
- The name of the S3 bucket to send logs to. The S3 bucket must already be created.
- S3EncryptionEnabled bool
- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
- S3KeyPrefix string
- An optional folder in the S3 bucket to place logs in.
- CloudWatch boolEncryption Enabled 
- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
- CloudWatch stringLog Group Name 
- The name of the CloudWatch log group to send logs to. The CloudWatch log group must already be created.
- S3BucketName string
- The name of the S3 bucket to send logs to. The S3 bucket must already be created.
- S3EncryptionEnabled bool
- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
- S3KeyPrefix string
- An optional folder in the S3 bucket to place logs in.
- cloudWatch BooleanEncryption Enabled 
- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
- cloudWatch StringLog Group Name 
- The name of the CloudWatch log group to send logs to. The CloudWatch log group must already be created.
- s3BucketName String
- The name of the S3 bucket to send logs to. The S3 bucket must already be created.
- s3EncryptionEnabled Boolean
- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
- s3KeyPrefix String
- An optional folder in the S3 bucket to place logs in.
- cloudWatch booleanEncryption Enabled 
- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
- cloudWatch stringLog Group Name 
- The name of the CloudWatch log group to send logs to. The CloudWatch log group must already be created.
- s3BucketName string
- The name of the S3 bucket to send logs to. The S3 bucket must already be created.
- s3EncryptionEnabled boolean
- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
- s3KeyPrefix string
- An optional folder in the S3 bucket to place logs in.
- cloud_watch_ boolencryption_ enabled 
- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
- cloud_watch_ strlog_ group_ name 
- The name of the CloudWatch log group to send logs to. The CloudWatch log group must already be created.
- s3_bucket_ strname 
- The name of the S3 bucket to send logs to. The S3 bucket must already be created.
- s3_encryption_ boolenabled 
- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
- s3_key_ strprefix 
- An optional folder in the S3 bucket to place logs in.
- cloudWatch BooleanEncryption Enabled 
- Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
- cloudWatch StringLog Group Name 
- The name of the CloudWatch log group to send logs to. The CloudWatch log group must already be created.
- s3BucketName String
- The name of the S3 bucket to send logs to. The S3 bucket must already be created.
- s3EncryptionEnabled Boolean
- Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
- s3KeyPrefix String
- An optional folder in the S3 bucket to place logs in.
ClusterManagedStorageConfiguration   
- FargateEphemeral stringStorage Kms Key Id 
- Specify the KMSlong key ID for the Fargate ephemeral storage. The key must be a single Region key.
- KmsKey stringId 
- Specify a KMSlong key ID to encrypt the managed storage. The key must be a single Region key.
- FargateEphemeral stringStorage Kms Key Id 
- Specify the KMSlong key ID for the Fargate ephemeral storage. The key must be a single Region key.
- KmsKey stringId 
- Specify a KMSlong key ID to encrypt the managed storage. The key must be a single Region key.
- fargateEphemeral StringStorage Kms Key Id 
- Specify the KMSlong key ID for the Fargate ephemeral storage. The key must be a single Region key.
- kmsKey StringId 
- Specify a KMSlong key ID to encrypt the managed storage. The key must be a single Region key.
- fargateEphemeral stringStorage Kms Key Id 
- Specify the KMSlong key ID for the Fargate ephemeral storage. The key must be a single Region key.
- kmsKey stringId 
- Specify a KMSlong key ID to encrypt the managed storage. The key must be a single Region key.
- fargate_ephemeral_ strstorage_ kms_ key_ id 
- Specify the KMSlong key ID for the Fargate ephemeral storage. The key must be a single Region key.
- kms_key_ strid 
- Specify a KMSlong key ID to encrypt the managed storage. The key must be a single Region key.
- fargateEphemeral StringStorage Kms Key Id 
- Specify the KMSlong key ID for the Fargate ephemeral storage. The key must be a single Region key.
- kmsKey StringId 
- Specify a KMSlong key ID to encrypt the managed storage. The key must be a single Region key.
ClusterSettings 
- Name string
- The name of the cluster setting. The value is containerInsights.
- Value string
- The value to set for the cluster setting. The supported values are enhanced,enabled, anddisabled. To use Container Insights with enhanced observability, set thecontainerInsightsaccount setting toenhanced. To use Container Insights, set thecontainerInsightsaccount setting toenabled. If a cluster value is specified, it will override thecontainerInsightsvalue set with PutAccountSetting or PutAccountSettingDefault.
- Name string
- The name of the cluster setting. The value is containerInsights.
- Value string
- The value to set for the cluster setting. The supported values are enhanced,enabled, anddisabled. To use Container Insights with enhanced observability, set thecontainerInsightsaccount setting toenhanced. To use Container Insights, set thecontainerInsightsaccount setting toenabled. If a cluster value is specified, it will override thecontainerInsightsvalue set with PutAccountSetting or PutAccountSettingDefault.
- name String
- The name of the cluster setting. The value is containerInsights.
- value String
- The value to set for the cluster setting. The supported values are enhanced,enabled, anddisabled. To use Container Insights with enhanced observability, set thecontainerInsightsaccount setting toenhanced. To use Container Insights, set thecontainerInsightsaccount setting toenabled. If a cluster value is specified, it will override thecontainerInsightsvalue set with PutAccountSetting or PutAccountSettingDefault.
- name string
- The name of the cluster setting. The value is containerInsights.
- value string
- The value to set for the cluster setting. The supported values are enhanced,enabled, anddisabled. To use Container Insights with enhanced observability, set thecontainerInsightsaccount setting toenhanced. To use Container Insights, set thecontainerInsightsaccount setting toenabled. If a cluster value is specified, it will override thecontainerInsightsvalue set with PutAccountSetting or PutAccountSettingDefault.
- name str
- The name of the cluster setting. The value is containerInsights.
- value str
- The value to set for the cluster setting. The supported values are enhanced,enabled, anddisabled. To use Container Insights with enhanced observability, set thecontainerInsightsaccount setting toenhanced. To use Container Insights, set thecontainerInsightsaccount setting toenabled. If a cluster value is specified, it will override thecontainerInsightsvalue set with PutAccountSetting or PutAccountSettingDefault.
- name String
- The name of the cluster setting. The value is containerInsights.
- value String
- The value to set for the cluster setting. The supported values are enhanced,enabled, anddisabled. To use Container Insights with enhanced observability, set thecontainerInsightsaccount setting toenhanced. To use Container Insights, set thecontainerInsightsaccount setting toenabled. If a cluster value is specified, it will override thecontainerInsightsvalue set with PutAccountSetting or PutAccountSettingDefault.
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi