-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_wafv2_web_acl add support for association_config #31668
r/aws_wafv2_web_acl add support for association_config #31668
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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.
Welcome @TsvetanMilanov 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
0a8ca31
to
e4cb8d2
Compare
e4cb8d2
to
d416aee
Compare
d416aee
to
41385d6
Compare
…hat belong to a feature you are not allowed to use' errors with nil 'association_config'.
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccWAFV2WebACL_basic\|TestAccWAFV2WebACL_associationConfig\|TestAccWAFV2WebACL_CloudFrontScope' PKG=wafv2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/wafv2/... -v -count 1 -parallel 2 -run=TestAccWAFV2WebACL_basic\|TestAccWAFV2WebACL_associationConfig\|TestAccWAFV2WebACL_CloudFrontScope -timeout 180m
=== RUN TestAccWAFV2WebACL_basic
=== PAUSE TestAccWAFV2WebACL_basic
=== RUN TestAccWAFV2WebACL_associationConfig
=== PAUSE TestAccWAFV2WebACL_associationConfig
=== RUN TestAccWAFV2WebACL_CloudFrontScope
=== PAUSE TestAccWAFV2WebACL_CloudFrontScope
=== CONT TestAccWAFV2WebACL_basic
=== CONT TestAccWAFV2WebACL_CloudFrontScope
acctest.go:873: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-1]
--- SKIP: TestAccWAFV2WebACL_CloudFrontScope (0.59s)
=== CONT TestAccWAFV2WebACL_associationConfig
acctest.go:873: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-1]
--- SKIP: TestAccWAFV2WebACL_associationConfig (0.00s)
--- PASS: TestAccWAFV2WebACL_basic (36.09s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/wafv2 42.149s
% AWS_DEFAULT_REGION=us-east-1 make testacc TESTARGS='-run=TestAccWAFV2WebACL_basic\|TestAccWAFV2WebACL_associationConfig\|TestAccWAFV2WebACL_CloudFrontScope' PKG=wafv2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/wafv2/... -v -count 1 -parallel 2 -run=TestAccWAFV2WebACL_basic\|TestAccWAFV2WebACL_associationConfig\|TestAccWAFV2WebACL_CloudFrontScope -timeout 180m
=== RUN TestAccWAFV2WebACL_basic
=== PAUSE TestAccWAFV2WebACL_basic
=== RUN TestAccWAFV2WebACL_associationConfig
=== PAUSE TestAccWAFV2WebACL_associationConfig
=== RUN TestAccWAFV2WebACL_CloudFrontScope
=== PAUSE TestAccWAFV2WebACL_CloudFrontScope
=== CONT TestAccWAFV2WebACL_basic
=== CONT TestAccWAFV2WebACL_CloudFrontScope
--- PASS: TestAccWAFV2WebACL_basic (34.46s)
=== CONT TestAccWAFV2WebACL_associationConfig
--- PASS: TestAccWAFV2WebACL_CloudFrontScope (36.60s)
--- PASS: TestAccWAFV2WebACL_associationConfig (27.73s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/wafv2 68.110s
@TsvetanMilanov Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.9.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Add
association_config
argument in theaws_wafv2_web_acl
resource to allow providing AssociationConfigRelations
Closes #31667.
Closes #32141.
Closes #32367.
References
https://docs.aws.amazon.com/waf/latest/APIReference/API_CreateWebACL.html
https://docs.aws.amazon.com/waf/latest/APIReference/API_AssociationConfig.html
Output from Acceptance Testing