Expand description
Provides an EC2 Capacity Block Reservation. This allows you to purchase capacity block for your Amazon EC2 instances in a specific Availability Zone for machine learning (ML) Workloads.
NOTE: Once created, a reservation is valid for the
duration
of the providedcapacity_block_offering_id
and cannot be deleted. Performing adestroy
will only remove the resource from state. For more information see EC2 Capacity Block Reservation Documentation and PurchaseReservedDBInstancesOffering.
NOTE: Due to the expense of testing this resource, we provide it as best effort. If you find it useful, and have the ability to help test or notice issues, consider reaching out to us on GitHub.
§Example Usage
resources:
example:
type: aws:ec2:CapacityBlockReservation
properties:
capacityBlockOfferingId: ${test.capacityBlockOfferingId}
instancePlatform: Linux/UNIX
tags:
Environment: dev
variables:
test:
fn::invoke:
function: aws:ec2:getCapacityBlockOffering
arguments:
capacityDurationHours: 24
endDateRange: 2024-05-30T15:04:05Z
instanceCount: 1
instanceType: p4d.24xlarge
startDateRange: 2024-04-28T15:04:05Z
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