You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform plan displays the following in 02-intro-to-terraform-syntax/webserver-cluster
Warning: "condition.0.values": [DEPRECATED] use 'host_header' or 'path_pattern' attribute instead
on main.tf line 113, in resource "aws_lb_listener_rule" "asg":
113: resource "aws_lb_listener_rule" "asg" {
This was a change introduced in hashicorp/terraform-provider-aws#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):
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?
The text was updated successfully, but these errors were encountered: