placement_group
Gets or updates an individual placement_group
resource, use placement_groups
to retrieve a list of resources or to create or delete a resource.
Overview
Name | placement_group |
Type | Resource |
Description | Resource Type definition for AWS::EC2::PlacementGroup |
Id | aws.ec2.placement_group |
Fields
Name | Datatype | Description |
---|---|---|
strategy | string | The placement strategy. |
group_name | string | The Group Name of Placement Group. |
spread_level | string | The Spread Level of Placement Group is an enum where it accepts either host or rack when strategy is spread |
partition_count | integer | The number of partitions. Valid only when **Strategy** is set to `partition` |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
get_resource | SELECT | data__Identifier, region |
SELECT
Example
SELECT
region,
strategy,
group_name,
spread_level,
partition_count,
tags
FROM aws.ec2.placement_group
WHERE region = 'us-east-1' AND data__Identifier = '<GroupName>';
Permissions
To operate on the placement_group
resource, the following permissions are required:
Read
ec2:DescribePlacementGroups