Skip to content

Commit

Permalink
Fix terraform 0.12 deprecations (#3)
Browse files Browse the repository at this point in the history
* Fix terraform 0.12 deprecations

* Fix Makefile
  • Loading branch information
snovikov authored Jul 10, 2020
1 parent 2fb7c65 commit dc47cdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ _gen-examples:
-e DELIM_START='$(DELIM_START)' \
-e DELIM_CLOSE='$(DELIM_CLOSE)' \
cytopia/terraform-docs:$(TF_DOCS_VERSION) \
terraform-docs-replace-012 --sort-inputs-by-required --with-aggregate-type-defaults md $${DOCKER_PATH}/README.md; then \
terraform-docs-replace-012 --sort-inputs-by-required --with-aggregate-type-defaults md README.md; then \
echo "OK"; \
else \
echo "Failed"; \
Expand All @@ -126,7 +126,7 @@ _gen-modules:
-e DELIM_START='$(DELIM_START)' \
-e DELIM_CLOSE='$(DELIM_CLOSE)' \
cytopia/terraform-docs:$(TF_DOCS_VERSION) \
terraform-docs-replace-012 --sort-inputs-by-required --with-aggregate-type-defaults md $${DOCKER_PATH}/README.md; then \
terraform-docs-replace-012 --sort-inputs-by-required --with-aggregate-type-defaults md README.md; then \
echo "OK"; \
else \
echo "Failed"; \
Expand Down
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ resource "aws_subnet" "public" {

# If AWS adds another availability zone, this will not have effect on the already picked subnets.
lifecycle {
ignore_changes = ["availability_zone"]
ignore_changes = [availability_zone]
}

tags = merge(
Expand All @@ -56,8 +56,8 @@ resource "aws_subnet" "public" {

resource "aws_route_table_association" "this" {
count = 2
subnet_id = "${aws_subnet.public[count.index].id}"
route_table_id = "${aws_route_table.public.id}"
subnet_id = aws_subnet.public[count.index].id
route_table_id = aws_route_table.public.id
}

resource "aws_route" "public_internet_gateway" {
Expand All @@ -84,7 +84,7 @@ resource "aws_internet_gateway" "this" {
resource "aws_security_group" "this" {
name = "${var.name}-albredirect"
description = "Allow inbound 80/443 traffic alb redirect"
vpc_id = "${aws_vpc.this.id}"
vpc_id = aws_vpc.this.id

ingress {
# TLS (change to whatever ports you need)
Expand Down

0 comments on commit dc47cdd

Please sign in to comment.