derekjreed / terraform-aws-lb-listener-rules

Basic terraform module for aws lb listener rules (v 0.12)
GNU General Public License v3.0
0 stars 0 forks source link

Unsupported block type path_pattern #1

Open sonalkr132 opened 4 years ago

sonalkr132 commented 4 years ago

I am getting following exception:

Error: Unsupported block type                                                                                                                                          

  on file.tf line 87, in resource "aws_lb_listener_rule" "name":                                                                              
  87:     path_pattern {                                                                                                                                               

Blocks of type "path_pattern" are not expected here.  

doc says path_pattern as well. In plan I see path-pattern being used.

sonalkr132 commented 4 years ago

Following works:

condition {
    field = "path-pattern"
    values = ["/urlpath/*"]
  }

again taken from terrafrom plan.