1
0
mirror of https://github.com/Loofort/terraform-aws-gitea synced 2024-11-22 02:32:02 +01:00
terraform-aws-gitea/vpc/variables.tf
2018-12-16 15:12:43 +03:00

34 lines
782 B
HCL

variable "cidr" {
description = "The CIDR block for the VPC. Default value is a valid CIDR, but not acceptable by AWS and should be overridden"
default = "0.0.0.0/0"
}
variable "cidr_subnet" {
description = "the cidr of the subnet"
#default = "0.0.0.0/0"
}
variable "tags" {
description = "A map of tags to add to all resources"
type = "map"
#default = {}
}
variable "az" {
description = "availability zones in the region"
default = ""
}
# A computed default
data "aws_availability_zones" "azs" {}
locals {
default_az = "${data.aws_availability_zones.azs.names[0]}"
az = "${var.az != "" ? var.az : local.default_az}"
}
# Outputs
output "subnet" {
value = "${aws_subnet.public.id}"
}
output "id" {
value = "${aws_vpc.this.id}"
}