Onur Köse
Feb 23, 2023

Update for subnets.tf, instances.tf and security_groups.tf:

In Terraform versions below the 12, the following syntax was used for “tags”:

tags {
Name = "MY_TAG_NAME"
}

Currently, you need to add “=” after “tags”:

tags = {
Name = "MY_TAG_NAME"
}

Line #2 of instances.tf should be:

subnets = flatten(aws_subnet.terraform-blue-green.*.id)

instead of:

subnets = ["${aws_subnet.terraform-blue-green.*.id}"]

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Onur Köse
Onur Köse

No responses yet

Write a response