brikis98 / terraform-up-and-running-code

Code samples for the book "Terraform: Up & Running" by Yevgeniy Brikman
http://www.terraformupandrunning.com/
MIT License
2.87k stars 1.92k forks source link

Update to new aws_lb_listener_rule syntax #60

Closed brikis98 closed 4 years ago

rfulwell commented 3 years ago

Thanks for updating the sample code to work with the latest AWS provider! I found this PR after hacking around the problem myself by pinning the provider version back to what was available when the book was released. 👍

Now if we can just bump up this code in the Google search results when looking for:

Error: Unsupported argument
  on main.tf line 141, in resource "aws_lb_listener_rule" "asg":
 141:     field  = "path-pattern"
An argument named "field" is not expected here.

Error: Unsupported argument
  on main.tf line 142, in resource "aws_lb_listener_rule" "asg":
 142:     values = ["*"]
An argument named "values" is not expected here.