EC2 Capacity Reservation

EC2 Capacity Reservation in AWS allows you to reserve compute capacity in a specific Availability Zone for your Amazon EC2 instances. This ensures that you always have access to the capacity you need, regardless of overall demand in that zone. It is useful for workloads that require guaranteed availability, compliance needs, or predictable performance. You can create, manage, and cancel reservations as needed, and they can be combined with Savings Plans or Reserved Instances for cost optimization.

aws.ec2_capacity_reservation

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
availability_zonecorestringThe Availability Zone in which the capacity is reserved.
availability_zone_idcorestringThe Availability Zone ID of the Capacity Reservation.
available_instance_countcoreint64The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.
capacity_allocationscorejsonInformation about instance capacity usage.
capacity_reservation_arncorestringThe Amazon Resource Name (ARN) of the Capacity Reservation.
capacity_reservation_fleet_idcorestringThe ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for Capacity Reservations that were created by a Capacity Reservation Fleet.
capacity_reservation_idcorestringThe ID of the Capacity Reservation.
commitment_infocorejsonInformation about your commitment for a future-dated Capacity Reservation.
create_datecoretimestampThe date and time at which the Capacity Reservation was created.
delivery_preferencecorestringThe delivery method for a future-dated Capacity Reservation. incremental indicates that the requested capacity is delivered in addition to any running instances and reserved capacity that you have in your account at the requested date and time.
ebs_optimizedcoreboolIndicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.
end_datecoretimestampThe date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.
end_date_typecorestringIndicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types: unlimited - The Capacity Reservation remains active until you explicitly cancel it. limited - The Capacity Reservation expires automatically at a specified date and time.
ephemeral_storagecoreboolDeprecated.
instance_match_criteriacorestringIndicates the type of instance launches that the Capacity Reservation accepts. The options include: open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters. targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.
instance_platformcorestringThe type of operating system for which the Capacity Reservation reserves capacity.
instance_typecorestringThe type of instance for which the Capacity Reservation reserves capacity.
outpost_arncorestringThe Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.
owner_idcorestringThe ID of the Amazon Web Services account that owns the Capacity Reservation.
placement_group_arncorestringThe Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created. For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.
reservation_typecorestringThe type of Capacity Reservation.
start_datecoretimestampThe date and time at which the Capacity Reservation was started.
statecorestringThe current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states: active - The capacity is available for use. expired - The Capacity Reservation expired automatically at the date and time specified in your reservation request. The reserved capacity is no longer available for your use. cancelled - The Capacity Reservation was canceled. The reserved capacity is no longer available for your use. pending - The Capacity Reservation request was successful but the capacity provisioning is still pending. failed - The Capacity Reservation request has failed. A request can fail due to request parameters that are not valid, capacity constraints, or instance limit constraints. You can view a failed request for 60 minutes. scheduled - (Future-dated Capacity Reservations) The future-dated Capacity Reservation request was approved and the Capacity Reservation is scheduled for delivery on the requested start date. payment-pending - (Capacity Blocks) The upfront payment has not been processed yet. payment-failed - (Capacity Blocks) The upfront payment was not processed in the 12-hour time frame. Your Capacity Block was released. assessing - (Future-dated Capacity Reservations) Amazon EC2 is assessing your request for a future-dated Capacity Reservation. delayed - (Future-dated Capacity Reservations) Amazon EC2 encountered a delay in provisioning the requested future-dated Capacity Reservation. Amazon EC2 is unable to deliver the requested capacity by the requested start date and time. unsupported - (Future-dated Capacity Reservations) Amazon EC2 can't support the future-dated Capacity Reservation request due to capacity constraints. You can view unsupported requests for 30 days. The Capacity Reservation will not be delivered.
tagscorehstore
tenancycorestringIndicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings: default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts. dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.
total_instance_countcoreint64The total number of instances for which the Capacity Reservation reserves capacity.
unused_reservation_billing_owner_idcorestringThe ID of the Amazon Web Services account to which billing of the unused capacity of the Capacity Reservation is assigned.