PlacementGroup

class PlacementGroup : KotlinCustomResource

Provides an EC2 placement group. Read more about placement groups in AWS Docs.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.PlacementGroup;
import com.pulumi.aws.ec2.PlacementGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var web = new PlacementGroup("web", PlacementGroupArgs.builder()
.strategy("cluster")
.build());
}
}

Import

Placement groups can be imported using the name, e.g.,

$ pulumi import aws:ec2/placementGroup:PlacementGroup prod_pg production-placement-group

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the placement group.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the placement group.

Link copied to clipboard
val partitionCount: Output<Int>

The number of partitions to create in the placement group. Can only be specified when the strategy is set to partition. Valid values are 1 - 7 (default is 2).

Link copied to clipboard

The ID of the placement group.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val spreadLevel: Output<String>

Determines how placement groups spread instances. Can only be used when the strategy is set to spread. Can be host or rack. host can only be used for Outpost placement groups. Defaults to rack.

Link copied to clipboard
val strategy: Output<String>

The placement strategy. Can be cluster, partition or spread.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>