github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/placement_group.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_placement_group"
     4  sidebar_current: "docs-aws-resource-placement-group"
     5  description: |-
     6    Provides an EC2 placement group.
     7  ---
     8  
     9  # aws\_placement\_group
    10  
    11  Provides an EC2 placement group. Read more about placement groups
    12  in [AWS Docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html).
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  resource "aws_placement_group" "web" {
    18    name     = "hunky-dory-pg"
    19    strategy = "cluster"
    20  }
    21  ```
    22  
    23  ## Argument Reference
    24  
    25  The following arguments are supported:
    26  
    27  * `name` - (Required) The name of the placement group.
    28  * `strategy` - (Required) The placement strategy. The only supported value is `cluster`
    29  
    30  ## Attributes Reference
    31  
    32  The following attributes are exported:
    33  
    34  * `id` - The name of the placement group.
    35  
    36  ## Import
    37  
    38  Placement groups can be imported using the `name`, e.g.
    39  
    40  ```
    41  $ terraform import aws_placement_group.prod_pg production-placement-group
    42  ```