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§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments