Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Create a Capacity Reservation group

Focus mode
Create a Capacity Reservation group - Amazon Elastic Compute Cloud

You can use the following examples to create a resource group for Capacity Reservations with the following request parameters.

  • AWS::EC2::CapacityReservationPool – Ensures that the resource group can be targeted for instance launches.

  • AWS::ResourceGroups::Generic with allowed-resource-types set to AWS::EC2::CapacityReservation – Ensures that the resource group accepts Capacity Reservations only.

After you create a group, you can add Capacity Reservations to the group.

AWS CLI
To create a group for Capacity Reservations

Use the create-group AWS CLI command.

aws resource-groups create-group \ --name MyCRGroup \ --configuration \ '{"Type": "AWS::EC2::CapacityReservationPool"}' \ '{"Type": "AWS::ResourceGroups::Generic", "Parameters": [{"Name": "allowed-resource-types", "Values": ["AWS::EC2::CapacityReservation"]}]}'
PowerShell
To create a group for Capacity Reservations

Use the New-RGGroup cmdlet.

New-RGGroup ` -Name MyCRGroup ` -Configuration ` @{"Type"="AWS::EC2::CapacityReserationPool"} ` @{"Type"="AWS::ResourceGroups::Generic"; "Parameters"=@{"allowed-resource-types"=@{"Values"="AWS::EC2::CapacityReservations"}}}
To create a group for Capacity Reservations

Use the create-group AWS CLI command.

aws resource-groups create-group \ --name MyCRGroup \ --configuration \ '{"Type": "AWS::EC2::CapacityReservationPool"}' \ '{"Type": "AWS::ResourceGroups::Generic", "Parameters": [{"Name": "allowed-resource-types", "Values": ["AWS::EC2::CapacityReservation"]}]}'
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.