Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing availability_zone in subnet.tf #7

Open
jkemp101 opened this issue Dec 15, 2017 · 0 comments
Open

Missing availability_zone in subnet.tf #7

jkemp101 opened this issue Dec 15, 2017 · 0 comments

Comments

@jkemp101
Copy link

availability_zone is a variable in the module but is missing in the subnet resource.

resource "aws_subnet" "subnet" {
  cidr_block              = "${var.cidr_block}"
  vpc_id                  = "${var.vpc_id}"
  map_public_ip_on_launch = "${var.map_public_ip_on_launch}"

  tags {
    Name        = "${var.environment}_${var.purpose}_subnet_azone_${var.availability_zone}"
    Type        = "${var.purpose}"
    Environment = "${var.environment}"
  }
}

should be

resource "aws_subnet" "subnet" {
  cidr_block              = "${var.cidr_block}"
  vpc_id                  = "${var.vpc_id}"
  availability_zone       = "${var.availability_zone}"
  map_public_ip_on_launch = "${var.map_public_ip_on_launch}"

  tags {
    Name        = "${var.environment}_${var.purpose}_subnet_azone_${var.availability_zone}"
    Type        = "${var.purpose}"
    Environment = "${var.environment}"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant