Closed martin-flower closed 4 years ago
This was a change introduced in https://github.com/terraform-providers/terraform-provider-aws/pull/8268, which was released in AWS Provider 2.42.0, which came out after the second edition of the book was published. There are two ways you can get rid of this warning:
Do as the warning suggests and switch from this format:
condition {
field = "path-pattern"
values = ["*"]
}
To this format:
condition {
path_pattern {
values = ["*"]
}
}
Pin yourself to the older AWS provider version (this is not a good long-term fix):
provider "aws" {
version = "= 2.41.0"
}
Thanks Yevgeniy! Very helpful to not only give the solution, but also the explanation. In order to have repeatable build we probably need to pin the terraform and aws-provider versions. Just need to make sure we upgrade regularly.
terraform plan
displays the following in02-intro-to-terraform-syntax/webserver-cluster
How do I get rid of this message?