Posted On: Jun 28, 2023

Starting today, you can target EC2 Capacity Reservations within an Amazon Web Services Resource Group using the Resource Group ARN. With this feature, you can now use Capacity Reservations seamlessly for workloads that span Availability Zones and multiple instance types. This feature integrates seamlessly with EC2 Auto Scaling and EC2 Fleet.  

Using Amazon Web Services Resource Groups, you can organize your Capacity Reservations into logical groups for different workloads, environments, teams, or special events. You can include multiple Capacity Reservations having different attributes (instance type, platform, and Availability Zone) in a single resource group. In addition to launching an EC2 instance by targeting an individual Capacity Reservation, you can now target the instances to a logical group of Capacity Reservations.  

To use this feature, first use the Resource Groups “CreateGroup API” to create a resource group by providing a group name and specifying the configuration. Next, add your Capacity Reservations to that resource group. You can then specify the newly created resource group’s ARN as a target in your launch template. When your EC2 Auto Scaling group or EC2 Fleet launches an instance in a given Availability Zone, the instance will be matched to a Capacity Reservation within the Availability Zone belonging to the group that matches the instance type and platform combination.  

This feature is available in both Amazon Web Services China (Beijing) Region, operated by Sinnet and Amazon Web Services China (Ningxia) Region, operated by NWCD.