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

created network firewall data source #25495

Merged
merged 15 commits into from
Aug 5, 2022

Conversation

awsaxeman
Copy link
Contributor

@awsaxeman awsaxeman commented Jun 20, 2022

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 #18026

Output from acceptance testing:

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

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/networkfirewall Issues and PRs that pertain to the networkfirewall service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/XL Managed by automation to categorize the size of a PR. labels Jun 20, 2022
@AdamTylerLynch AdamTylerLynch self-assigned this Jun 21, 2022
@awsaxeman awsaxeman marked this pull request as ready for review June 22, 2022 04:34
@justinretzolk justinretzolk added new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 19, 2022
Copy link
Contributor

@ddericco ddericco left a comment

Choose a reason for hiding this comment

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

Hi @awsaxeman - good first PR! I took a first pass and have some recommended changes. I see @AdamTylerLynch self-assigned this as well and may have other suggestions.

website/docs/d/networkfirewall_firewall.html.markdown Outdated Show resolved Hide resolved
website/docs/d/networkfirewall_firewall.html.markdown Outdated Show resolved Hide resolved
website/docs/d/networkfirewall_firewall.html.markdown Outdated Show resolved Hide resolved
website/docs/d/networkfirewall_firewall.html.markdown Outdated Show resolved Hide resolved
website/docs/d/networkfirewall_firewall.html.markdown Outdated Show resolved Hide resolved
Copy link
Collaborator

@AdamTylerLynch AdamTylerLynch left a comment

Choose a reason for hiding this comment

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

Asked about addition attributes to expose.

Copy link
Collaborator

@AdamTylerLynch AdamTylerLynch left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

P.S. I see the service has exposed additional response data, I will file a corresponding GitHub issue as an enhancement for those.

@AdamTylerLynch
Copy link
Collaborator

There is two items that I don't believe the author of this PR needs to address:

  1. The CI/CD chain is breaking on files that they did not change. A simple rerun of the build should fix them?
  2. The AWS service has exposed new response objects, I have filed an enhancement request Add new attributes to AWS Network Firewall Datasource #26148.

Copy link
Contributor

@ewbankkit ewbankkit left a 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=TestAccNetworkFirewallFirewallDataSource_' PKG=networkfirewall ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/networkfirewall/... -v -count 1 -parallel 3  -run=TestAccNetworkFirewallFirewallDataSource_ -timeout 180m
=== RUN   TestAccNetworkFirewallFirewallDataSource_arn
=== PAUSE TestAccNetworkFirewallFirewallDataSource_arn
=== RUN   TestAccNetworkFirewallFirewallDataSource_name
=== PAUSE TestAccNetworkFirewallFirewallDataSource_name
=== RUN   TestAccNetworkFirewallFirewallDataSource_arnandname
=== PAUSE TestAccNetworkFirewallFirewallDataSource_arnandname
=== CONT  TestAccNetworkFirewallFirewallDataSource_arn
=== CONT  TestAccNetworkFirewallFirewallDataSource_arnandname
=== CONT  TestAccNetworkFirewallFirewallDataSource_name
--- PASS: TestAccNetworkFirewallFirewallDataSource_arn (637.11s)
--- PASS: TestAccNetworkFirewallFirewallDataSource_name (646.08s)
--- PASS: TestAccNetworkFirewallFirewallDataSource_arnandname (677.95s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall	681.683s

@ewbankkit
Copy link
Contributor

@awsaxeman Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit edc52fa into hashicorp:main Aug 5, 2022
@github-actions github-actions bot added this to the v4.26.0 milestone Aug 5, 2022
@github-actions
Copy link

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

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 Sep 12, 2022
@justinretzolk justinretzolk added the partner Contribution from a partner. label May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-data-source Introduces a new data source. partner Contribution from a partner. provider Pertains to the provider itself, rather than any interaction with AWS. service/networkfirewall Issues and PRs that pertain to the networkfirewall service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data sources for Network Firewall
5 participants