-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_alb_listener_rule doesn't import "action" if "condition" is query-string #354
Comments
Hi @edutu85, Thanks for raising! It looks like there was a missing Terraform field mapping for this. I've gone ahead and added that for you now. Give it another go and let me know if you still have issues. |
@iann0036 - thank you for looking at this.
The syntax looks to be different between the two tools. When I tun terraform validate against the terrafrom code generated with former2, I get this error:
I think "field = "query-string" " will generate same error (but have not verified it yet). Thank you |
Hi @edutu85, Thanks for that breakdown. It looks like the multi-variable stuff got added after resource creation a while back. I've made those changes now, but unsure if it'll format correctly (blocks vs. array of map) in Terraform. Let me know how you go. |
hi @iann0036 - thank you for looking over this.
while the terraform code I was able to run and generate the rules I needed is:
I hope this is useful. |
I am trying to import the exisiting aws infrastructure in terraform and I'm getting different results depending on what tool I use.
I am fairly new to terraform.
resource "aws_lb_listener_rule" "ElasticLoadBalancingV2ListenerRule" {
priority = "1"
listener_arn = "arn:aws:elasticloadbalancing:us-west-1:12345678:listener/app/test/1f0678e51e01c7d0a1b2c3d4/4d3c2b1a"
condition {
field = "query-string"
}
}
resource "aws_lb_listener_rule" "tfer--arn-ElasticLoadBalancingV2ListenerRule" {
action {
order = "1"
target_group_arn = "arn:aws:elasticloadbalancing:us-west-1:12345678:targetgroup/testtargetgroup/aa1bb2cc3dd4"
type = "forward"
}
condition {
query_string {
key = "mystring"
value = "02"
}
}
}
Am I missing something?
Thank you
The text was updated successfully, but these errors were encountered: