Information about EC2 Instance Type Offerings.
data "aws_ec2_instance_type_offerings" "example" {
filter {
name = "instance-type"
values = ["t2.micro", "t3.micro"]
}
filter {
name = "location"
values = ["usw2-az4"]
}
location_type = "availability-zone-id"
}
This data source supports the following arguments:
filter
- (Optional) One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.location_type
- (Optional) Location type. Defaults to region
. Valid values: availability-zone
, availability-zone-id
, and region
.name
- (Required) Name of the filter. The location
filter depends on the top-level location_type
argument and if not specified, defaults to the current region.values
- (Required) List of one or more values for the filter.This data source exports the following attributes in addition to the arguments above:
id
- AWS Region.instance_types
- List of EC2 Instance Types.locations
- List of locations.location_types
- List of location types.Note that the indexes of Instance Type Offering instance types, locations and location types correspond.
read
- (Default 20m
)