-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Allow WAF web ACL rule import #5337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -17,6 +17,9 @@ func resourceAwsWafWebAcl() *schema.Resource { | |||
Read: resourceAwsWafWebAclRead, | |||
Update: resourceAwsWafWebAclUpdate, | |||
Delete: resourceAwsWafWebAclDelete, | |||
Importer: &schema.ResourceImporter{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add the ## Import
documentation to website/docs/r/waf_web_acl.html.markdown
? Thanks! It'd probably also be good to note the rules limitation (for now).
@@ -16,35 +16,44 @@ import ( | |||
func TestAccAWSWafWebAcl_basic(t *testing.T) { | |||
var v waf.WebACL | |||
wafAclName := fmt.Sprintf("wafacl%s", acctest.RandString(5)) | |||
resourceName := "aws_waf_web_acl.waf_acl" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
I added the documentation. About the rules though, if they are handled by this resource, it will be incompatible with the Thanks |
Unless I'm misunderstanding the
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this in! 🚀
5 tests passed (all tests)
=== RUN TestAccAWSWafWebAcl_basic
--- PASS: TestAccAWSWafWebAcl_basic (43.42s)
=== RUN TestAccAWSWafWebAcl_group
--- PASS: TestAccAWSWafWebAcl_group (58.59s)
=== RUN TestAccAWSWafWebAcl_changeNameForceNew
--- PASS: TestAccAWSWafWebAcl_changeNameForceNew (90.89s)
=== RUN TestAccAWSWafWebAcl_disappears
--- PASS: TestAccAWSWafWebAcl_disappears (97.03s)
=== RUN TestAccAWSWafWebAcl_changeDefaultAction
--- PASS: TestAccAWSWafWebAcl_changeDefaultAction (106.53s)
This has been released in version 1.29.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Fixes #4589
Changes proposed in this pull request:
Output from acceptance testing: