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

d/aws_athena_named_query #24815

Merged
merged 13 commits into from
Nov 7, 2023

Conversation

LukeHendrick
Copy link
Contributor

@LukeHendrick LukeHendrick commented May 17, 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

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAthenaNamedQueryDataSource' PKG=athena ACCTEST_PARALLELISM=1
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/athena/... -v -count 1 -parallel 1  -run=TestAccAthenaNamedQueryDataSource -timeout 180m
=== RUN   TestAccAthenaNamedQueryDataSource_basic
=== PAUSE TestAccAthenaNamedQueryDataSource_basic
=== CONT  TestAccAthenaNamedQueryDataSource_basic
--- PASS: TestAccAthenaNamedQueryDataSource_basic (35.90s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/athena	38.346s
...

AWS API does not provide a way to natively retrieve aws_athena_named_query by name (id only). This data source allows you to do that (and filter by workspace)

@github-actions github-actions bot added provider Pertains to the provider itself, rather than any interaction with AWS. service/athena Issues and PRs that pertain to the athena service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. size/L Managed by automation to categorize the size of a PR. labels May 17, 2022
@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 May 17, 2022
@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label May 17, 2022
@LukeHendrick LukeHendrick changed the title Create athena_named_query data source d/aws_athena_named_query May 18, 2022
@LukeHendrick
Copy link
Contributor Author

Hi @justinretzolk! Was able to update the docs and fix some formatting issues so now all checks are passing!

@justinretzolk
Copy link
Member

Hey @LukeHendrick 👋 Thank you very much for your contribution! I'm the community manager for the provider, so I'm mostly taking a quick glance over this until one of our maintainers can take a look at the PR itself (in case you're unfamiliar with how we prioritize, we have a document that details that).

One thing I did notice on a quick check that we'll need a changelog entry as well. Other than that, this looks to be in good shape for review!

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=TestAccAthenaNamedQuery' PKG=athena ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/athena/... -v -count 1 -parallel 2  -run=TestAccAthenaNamedQuery -timeout 360m
=== RUN   TestAccAthenaNamedQueryDataSource_basic
=== PAUSE TestAccAthenaNamedQueryDataSource_basic
=== RUN   TestAccAthenaNamedQuery_basic
=== PAUSE TestAccAthenaNamedQuery_basic
=== RUN   TestAccAthenaNamedQuery_withWorkGroup
=== PAUSE TestAccAthenaNamedQuery_withWorkGroup
=== CONT  TestAccAthenaNamedQueryDataSource_basic
=== CONT  TestAccAthenaNamedQuery_withWorkGroup
--- PASS: TestAccAthenaNamedQueryDataSource_basic (54.79s)
=== CONT  TestAccAthenaNamedQuery_basic
--- PASS: TestAccAthenaNamedQuery_withWorkGroup (57.49s)
--- PASS: TestAccAthenaNamedQuery_basic (39.33s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/athena	99.976s

@ewbankkit
Copy link
Contributor

@LukeHendrick Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 879a202 into hashicorp:main Nov 7, 2023
43 checks passed
@github-actions github-actions bot added this to the v5.25.0 milestone Nov 7, 2023
Copy link

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

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 Dec 11, 2023
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. provider Pertains to the provider itself, rather than any interaction with AWS. service/athena Issues and PRs that pertain to the athena service. size/L 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.

3 participants