Skip to content
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

update network firewall policy arn regex for aws managed rules #22355

Merged
merged 4 commits into from
Mar 25, 2022

Conversation

lundbird
Copy link
Contributor

@lundbird lundbird commented Dec 27, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #22154

Output from acceptance testing:

$make testacc TESTS=TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupReferenceManaged PKG=networkfirewall
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/networkfirewall/... -v -count 1 -parallel 20 -run='TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupReferenceManaged' -timeout 180m
=== RUN   TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupReferenceManaged
=== PAUSE TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupReferenceManaged
=== CONT  TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupReferenceManaged
--- PASS: TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupReferenceManaged (149.03s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall    150.623s
...

@github-actions github-actions bot added service/networkfirewall Issues and PRs that pertain to the networkfirewall service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. verify Pertains to the verify package (i.e., provider-level validating, diff suppression, etc.) size/S Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. labels Dec 27, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @lundbird 👋

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 CONTRIBUTING 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! 😃

@lundbird lundbird changed the title update network firewall arn regex and add test [WIP] update network firewall arn regex and add test Dec 27, 2021
@lundbird lundbird changed the title [WIP] update network firewall arn regex and add test update network firewall arn regex and add test Dec 27, 2021
@lundbird lundbird changed the title update network firewall arn regex and add test update network firewall policy arn regex for aws managed rules Dec 27, 2021
@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 13, 2022
@floryut
Copy link

floryut commented Mar 11, 2022

@justinretzolk Any news on this one ? this is impairing our AWS Firewall deployment using tf.

Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lundbird Hard to believe you're a first-time contributor! Very clean and you included a test. Excellent work! 🎉

Output from acceptance tests:

--- PASS: TestAccNetworkFirewallFirewallPolicy_statelessCustomAction (144.74s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_statefulEngineOption (144.76s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_basic (146.43s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_statefulDefaultActions (146.46s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_disappears (151.82s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupReference (162.94s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupPriorityReference (165.98s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupReferenceManaged (167.65s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_statelessRuleGroupReference (198.19s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_updateStatefulRuleGroupPriorityReference (198.19s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_multipleStatelessRuleGroupReferences (200.24s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_multipleStatefulRuleGroupReferences (200.29s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_updateStatelessRuleGroupReference (203.01s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_updateStatefulRuleGroupReference (205.79s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_multipleStatelessCustomActions (288.53s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_statefulRuleGroupReferenceAndCustomAction (318.10s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_updateStatefulEngineOption (330.71s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_updateStatelessCustomAction (593.52s)
--- PASS: TestAccNetworkFirewallFirewallPolicy_tags (157.98s)

@YakDriver YakDriver merged commit 9ed478f into hashicorp:main Mar 25, 2022
@github-actions github-actions bot added this to the v4.8.0 milestone Mar 25, 2022
@github-actions
Copy link

This functionality has been released in v4.8.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!

@github-actions
Copy link

github-actions bot commented May 5, 2022

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/networkfirewall Issues and PRs that pertain to the networkfirewall service. size/S Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. verify Pertains to the verify package (i.e., provider-level validating, diff suppression, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Network Firewall: please integrate the new Managed Rules Groups
4 participants