Data Source: awsEc2InstanceTypes
Information about EC2 Instance Types.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEc2InstanceTypes.DataAwsEc2InstanceTypes(this, "test", {
filter: [
{
name: "auto-recovery-supported",
values: ["true"],
},
{
name: "network-info.encryption-in-transit-supported",
values: ["true"],
},
{
name: "instance-storage-supported",
values: ["true"],
},
{
name: "instance-type",
values: ["g5.2xlarge", "g5.4xlarge"],
},
],
});
Argument Reference
The following arguments are supported:
filter
- (Optional) One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
filter Argument Reference
name
- (Required) Name of the filter.values
- (Required) List of one or more values for the filter.
Attribute Reference
In addition to all arguments above, the following attributes are exported:
id
- AWS Region.instanceTypes
- List of EC2 Instance Types.
Timeouts
read
- (Default20M
)