pulumi_wasm_providers_aws_mini::ec2

Module capacity_block_reservation

source
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 provided capacity_block_offering_id and cannot be deleted. Performing a destroy 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§

Functions§

  • Registers a new resource with the given unique name and arguments