Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/service/ec2/ec2_placement_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func resourcePlacementGroup() *schema.Resource {
Computed: true,
ForceNew: true,
// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html#placement-groups-limitations-partition.
ValidateFunc: validation.IntBetween(0, 7),
ValidateFunc: validation.IntAtLeast(1),
},
"placement_group_id": {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/placement_group.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This resource supports the following arguments:
* `name` - (Required) The name of the placement group.
* `partition_count` - (Optional) 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`).
`partition`. Must be at least `1`. (default is `2`).
* `spread_level` - (Optional) 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`.
* `strategy` - (Required) The placement strategy. Can be `cluster`, `partition` or `spread`.
Expand Down
Loading