hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

[Bug]: WAF application integration url outputted as empty #36854

Open raviparekh opened 5 months ago

raviparekh commented 5 months ago

Terraform Core Version

1.5.7

AWS Provider Version

5.40.0

Affected Resource(s)

aws_wafv2_web_acl

Expected Behavior

Once aws_wafv2_web_acl resource has been created and also bot control rule has been added, outputting the application integration url should be the proper URL for the sdk. It should also worked when given an existing WAF and bot control rule has been added.

Example: output "regional_waf_web_acl_challenge_sdk_url" { value = aws_wafv2_web_acl.webacl.application_integration_url }

Actual Behavior

When outputting the application_integration_url for a existing WAF with bot control enabled, the url seems to be evaluated eagerly rather than being computed once the actual url is available from aws. Re-running the apply command the 2nd time works as expected and the SDK URL is populated Example of first run: image

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

N/A

Steps to Reproduce

terraform apply {some_module_waf}

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 5 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue