Resource Type definition for AWS::EC2::PlacementGroup
To create cluster ec2 placement group with tags
resource "awscc_ec2_placement_group" "web" {
strategy = "cluster"
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]
}
To create partition ec2 placement group with tags
resource "awscc_ec2_placement_group" "web" {
strategy = "partition"
partition_count = 2
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]
}
To create spread ec2 placement group with tags
resource "awscc_ec2_placement_group" "web" {
strategy = "spread"
spread_level = "host"
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]
}
partition_count
(Number) The number of partitions. Valid only when Strategy is set to partition
spread_level
(String) The Spread Level of Placement Group is an enum where it accepts either host or rack when strategy is spreadstrategy
(String) The placement strategy.tags
(Attributes Set) An array of key-value pairs to apply to this resource. (see below for nested schema)group_name
(String) The Group Name of Placement Group.id
(String) Uniquely identifies the resource.tags
Required:
key
(String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.value
(String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.Import is supported using the following syntax:
$ terraform import awscc_ec2_placement_group.example <resource ID>