I am trying to import a few AWS WAF ACLs into an existing terraform deployment. I have tried both variations of the code.
#version 1:
resource "aws_waf_web_acl" "mywaf" {
# (resource arguments)
}
$ terraform import aws_waf_web_acl.mywaf id-xxxx-xxx
Error: aws_waf_web_acl.mywaf (import id: xxxx-xxx): 1 error(s) occurred Terraform detected a resource with this ID doesn't exist. Please verify the ID is correct.
#version 2:
resource "aws_wafregional_web_acl" "mywaf" {
# (resource arguments)
}
$ terraform import aws_wafregional_web_acl.mywaf id-xxxx-xxx
Error: aws_wafregional_web_acl doesn't support import
I have verified that the ID is correct. Is this possible with AWS provider 1.45? Thanks.
aws waf --region us-east-1 list-web-acls
– user2518691