Skip to main content

Placement Group

Provides an EC2 Placement Group

exports.createResources = () => [
{
type: "PlacementGroup",
group: "EC2",
properties: ({}) => ({
GroupName: "my-placementgroup",
Strategy: "cluster",
}),
},
];

Properties

Examples

Used By

Listing

gc l -t PlacementGroup
Listing resources on 1 provider: aws
✓ aws us-east-1
✓ Initialising
✓ Listing 1/1
┌─────────────────────────────────────────────────────────────────────────────────────┐
│ 1 EC2::PlacementGroup from aws │
├─────────────────────────────────────────────────────────────────────────────────────┤
│ name: my-placementgroup │
│ managedByUs: Yes │
│ live: │
│ GroupName: my-placementgroup │
│ State: available │
│ Strategy: cluster │
│ GroupId: pg-090d5c7684292e86e │
│ Tags: │
│ - Key: gc-created-by-provider │
│ Value: aws │
│ - Key: gc-managed-by │
│ Value: grucloud │
│ - Key: gc-project-name │
│ Value: placement-group-cluster │
│ - Key: gc-stage │
│ Value: dev │
│ - Key: Name │
│ Value: my-placementgroup │
│ GroupArn: arn:aws:ec2:us-east-1:840541460064:placement-group/my-placementgroup │
│ │
└─────────────────────────────────────────────────────────────────────────────────────┘


List Summary:
Provider: aws
┌────────────────────────────────────────────────────────────────────────────────────┐
│ aws │
├─────────────────────┬──────────────────────────────────────────────────────────────┤
│ EC2::PlacementGroup │ my-placementgroup │
└─────────────────────┴──────────────────────────────────────────────────────────────┘
1 resource, 1 type, 1 provider
Command "gc l -t PlacementGroup" executed in 4s, 100 MB