pulumi_wasm_providers_aws_mini::ec2

Module placement_group

source
Expand description

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

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let web = placement_group::create(
        "web",
        PlacementGroupArgs::builder()
            .name("hunky-dory-pg")
            .strategy("cluster")
            .build_struct(),
    );
}

§Import

Using pulumi import, import placement groups using the name. For example:

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

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments