» Resource: aws_placement_group
Provides an EC2 placement group. Read more about placement groups in AWS Docs.
» Example Usage
resource "aws_placement_group" "web" {
name = "hunky-dory-pg"
strategy = "cluster"
}
» Argument Reference
The following arguments are supported:
» Attributes Reference
In addition to all arguments above, the following attributes are exported:
-
id
- The name of the placement group.
» Import
Placement groups can be imported using the name
, e.g.
$ terraform import aws_placement_group.prod_pg production-placement-group