AWS Native is in preview. AWS Classic is fully supported.
aws-native.ecs.Cluster
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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:
- Capacity
Providers List<string> - Cluster
Name 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.
- Cluster
Settings List<Pulumi.Aws Native. Ecs. Inputs. Cluster Settings> - Configuration
Pulumi.
Aws Native. Ecs. Inputs. Cluster Configuration - Default
Capacity List<Pulumi.Provider Strategy Aws Native. Ecs. Inputs. Cluster Capacity Provider Strategy Item> - Service
Connect Pulumi.Defaults Aws Native. Ecs. Inputs. Cluster Service Connect Defaults - List<Pulumi.
Aws Native. Ecs. Inputs. Cluster Tag>
- Capacity
Providers []string - Cluster
Name 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.
- Cluster
Settings []ClusterSettings Args - Configuration
Cluster
Configuration Args - Default
Capacity []ClusterProvider Strategy Capacity Provider Strategy Item Args - Service
Connect ClusterDefaults Service Connect Defaults Args - []Cluster
Tag Args
- capacity
Providers List<String> - cluster
Name 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.
- cluster
Settings List<ClusterSettings> - configuration
Cluster
Configuration - default
Capacity List<ClusterProvider Strategy Capacity Provider Strategy Item> - service
Connect ClusterDefaults Service Connect Defaults - List<Cluster
Tag>
- capacity
Providers string[] - cluster
Name 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.
- cluster
Settings ClusterSettings[] - configuration
Cluster
Configuration - default
Capacity ClusterProvider Strategy Capacity Provider Strategy Item[] - service
Connect ClusterDefaults Service Connect Defaults - Cluster
Tag[]
- capacity_
providers Sequence[str] - cluster_
name str 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.
- cluster_
settings Sequence[ClusterSettings Args] - configuration
Cluster
Configuration Args - default_
capacity_ Sequence[Clusterprovider_ strategy Capacity Provider Strategy Item Args] - service_
connect_ Clusterdefaults Service Connect Defaults Args - Sequence[Cluster
Tag Args]
- capacity
Providers List<String> - cluster
Name 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.
- cluster
Settings List<Property Map> - configuration Property Map
- default
Capacity List<Property Map>Provider Strategy - service
Connect Property MapDefaults - List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
Supporting Types
ClusterCapacityProviderStrategyItem, ClusterCapacityProviderStrategyItemArgs
- Base int
- Capacity
Provider string - Weight int
- Base int
- Capacity
Provider string - Weight int
- base Integer
- capacity
Provider String - weight Integer
- base number
- capacity
Provider string - weight number
- base int
- capacity_
provider str - weight int
- base Number
- capacity
Provider String - weight Number
ClusterConfiguration, ClusterConfigurationArgs
ClusterExecuteCommandConfiguration, ClusterExecuteCommandConfigurationArgs
- kms
Key StringId - log
Configuration Property Map - logging String
ClusterExecuteCommandLogConfiguration, ClusterExecuteCommandLogConfigurationArgs
- Cloud
Watch boolEncryption Enabled - Cloud
Watch stringLog Group Name - S3Bucket
Name string - S3Encryption
Enabled bool - S3Key
Prefix string
- Cloud
Watch boolEncryption Enabled - Cloud
Watch stringLog Group Name - S3Bucket
Name string - S3Encryption
Enabled bool - S3Key
Prefix string
- cloud
Watch BooleanEncryption Enabled - cloud
Watch StringLog Group Name - s3Bucket
Name String - s3Encryption
Enabled Boolean - s3Key
Prefix String
- cloud
Watch booleanEncryption Enabled - cloud
Watch stringLog Group Name - s3Bucket
Name string - s3Encryption
Enabled boolean - s3Key
Prefix string
- cloud
Watch BooleanEncryption Enabled - cloud
Watch StringLog Group Name - s3Bucket
Name String - s3Encryption
Enabled Boolean - s3Key
Prefix String
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
ClusterTag, ClusterTagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.