Commit 3a6a3f7d authored by Felix Edelsten's avatar Felix Edelsten

Further Syntax Changes

parent d57e0ff8
Pipeline #6247 passed with stage
in 14 seconds
...@@ -50,7 +50,7 @@ resource "aws_subnet" "public" { ...@@ -50,7 +50,7 @@ resource "aws_subnet" "public" {
count = "${length(var.public_subnets)}" count = "${length(var.public_subnets)}"
map_public_ip_on_launch = true map_public_ip_on_launch = true
tags { tags = {
Name = "${var.name}.public.${element(var.availability_zones, count.index)}" Name = "${var.name}.public.${element(var.availability_zones, count.index)}"
} }
} }
...@@ -63,7 +63,7 @@ resource "aws_subnet" "private" { ...@@ -63,7 +63,7 @@ resource "aws_subnet" "private" {
availability_zone = "${element(var.availability_zones, count.index)}" availability_zone = "${element(var.availability_zones, count.index)}"
count = "${length(var.private_subnets)}" count = "${length(var.private_subnets)}"
tags { tags = {
Name = "${var.name}.private.${element(var.availability_zones, count.index)}" Name = "${var.name}.private.${element(var.availability_zones, count.index)}"
} }
} }
...@@ -71,7 +71,7 @@ resource "aws_subnet" "private" { ...@@ -71,7 +71,7 @@ resource "aws_subnet" "private" {
resource "aws_internet_gateway" "mod" { resource "aws_internet_gateway" "mod" {
vpc_id = "${aws_vpc.mod.id}" vpc_id = "${aws_vpc.mod.id}"
tags { tags = {
Name = "${var.name}" Name = "${var.name}"
} }
} }
...@@ -91,7 +91,7 @@ resource "aws_nat_gateway" "nat" { ...@@ -91,7 +91,7 @@ resource "aws_nat_gateway" "nat" {
resource "aws_route_table" "public" { resource "aws_route_table" "public" {
vpc_id = "${aws_vpc.mod.id}" vpc_id = "${aws_vpc.mod.id}"
tags { tags = {
Name = "${var.name}.public" Name = "${var.name}.public"
} }
} }
...@@ -100,7 +100,7 @@ resource "aws_route_table" "private" { ...@@ -100,7 +100,7 @@ resource "aws_route_table" "private" {
vpc_id = "${aws_vpc.mod.id}" vpc_id = "${aws_vpc.mod.id}"
count = "${length(var.private_subnets)}" count = "${length(var.private_subnets)}"
tags { tags = {
Name = "${var.name}.private.${element(var.availability_zones, count.index)}" Name = "${var.name}.private.${element(var.availability_zones, count.index)}"
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment