Closed tolidano closed 2 years ago
Voting for Prioritization
Volunteering to Work on This Issue
@tolidano From the example you provided, it looks like you are using the aws_wafv2_web_acl
resource, but you shared a link to the waf_web_acl
resource. The waf_web_acl
resource does support just providing the id
when you import the resource, but the aws_wafv2_web_acl
resource expects the full ID/Name/Scope
string when you do the import.
From the docs here: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/wafv2_web_acl#import
Hey @tolidano 👋 Thank you for taking the time to raise this! As mentioned above, it looks like this is a difference in importing the aws_waf_web_acl
resource vs. the aws_wafv2_web_acl
resource.
Given that's the case, we'll close this issue for now. Please do let me know if you feel I've done this in error, and thank you again for taking the time to raise this, regardless of the outcome!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Documentation Link
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/waf_web_acl
Description
It says:
But this is not true:
The correct declaration is:
Note that it must include the name and the scope (being CLOUDFRONT or REGIONAL)
References
No response
Would you like to implement a fix?
No