Files
threshold/enos/modules/az_finder/main.tf
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
437 B
Terraform
Raw Normal View History

/*
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
}
}
}
*/
variable "instance_type" {
default = ["t3.small"]
type = list(string)
}
data "aws_ec2_instance_type_offerings" "infra" {
filter {
name = "instance-type"
values = var.instance_type
}
location_type = "availability-zone"
}
output "availability_zones" {
value = data.aws_ec2_instance_type_offerings.infra.locations
}