Data Source: aws_ec2_instance_types

Information about EC2 Instance Types.

Example Usage

data "aws_ec2_instance_types" "test" {
  filter {
    name   = "auto-recovery-supported"
    values = ["true"]
  }

  filter {
    name   = "network-info.encryption-in-transit-supported"
    values = ["true"]
  }

  filter {
    name   = "instance-storage-supported"
    values = ["true"]
  }

  filter {
    name   = "instance-type"
    values = ["g5.2xlarge", "g5.4xlarge"]
  }
}

Argument Reference

This data source supports the following arguments:

filter Argument Reference

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

Timeouts

Configuration options: