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

r/aws_athena_database: remove ForceNew from bucket field #21491

Conversation

miyajan
Copy link
Contributor

@miyajan miyajan commented Oct 26, 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

Why?

The ForceNew: true is specified in the bucket field of aws_athena_database. But there is no need for the resource to be recreated when the bucket field is changed, since the bucket field is only used to store the query results during database creation & deletion.

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAthenaDatabase_' PKG_NAME=internal/service/athena
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/athena/... -v -count 1 -parallel 20 -run=TestAccAthenaDatabase_ -timeout 180m
=== RUN   TestAccAthenaDatabase_basic
=== PAUSE TestAccAthenaDatabase_basic
=== RUN   TestAccAthenaDatabase_encryption
=== PAUSE TestAccAthenaDatabase_encryption
=== RUN   TestAccAthenaDatabase_nameStartsWithUnderscore
=== PAUSE TestAccAthenaDatabase_nameStartsWithUnderscore
=== RUN   TestAccAthenaDatabase_nameCantHaveUppercase
=== PAUSE TestAccAthenaDatabase_nameCantHaveUppercase
=== RUN   TestAccAthenaDatabase_destroyFailsIfTablesExist
=== PAUSE TestAccAthenaDatabase_destroyFailsIfTablesExist
=== RUN   TestAccAthenaDatabase_forceDestroyAlwaysSucceeds
=== PAUSE TestAccAthenaDatabase_forceDestroyAlwaysSucceeds
=== CONT  TestAccAthenaDatabase_basic
=== CONT  TestAccAthenaDatabase_destroyFailsIfTablesExist
=== CONT  TestAccAthenaDatabase_nameCantHaveUppercase
=== CONT  TestAccAthenaDatabase_nameStartsWithUnderscore
=== CONT  TestAccAthenaDatabase_encryption
=== CONT  TestAccAthenaDatabase_forceDestroyAlwaysSucceeds
--- PASS: TestAccAthenaDatabase_nameCantHaveUppercase (3.94s)
--- PASS: TestAccAthenaDatabase_nameStartsWithUnderscore (57.61s)
--- PASS: TestAccAthenaDatabase_basic (57.64s)
--- PASS: TestAccAthenaDatabase_forceDestroyAlwaysSucceeds (62.24s)
--- PASS: TestAccAthenaDatabase_encryption (63.03s)
--- PASS: TestAccAthenaDatabase_destroyFailsIfTablesExist (71.76s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/athena    73.794s

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/athena Issues and PRs that pertain to the athena service. size/XS Managed by automation to categorize the size of a PR. labels Oct 26, 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 @miyajan 👋

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

@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 Oct 26, 2021
@ewbankkit
Copy link
Contributor

@xxx Thanks for the contribution 🎉 👏.
Your change has been rolled into #23745.

@ewbankkit ewbankkit closed this Mar 18, 2022
@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 May 10, 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/athena Issues and PRs that pertain to the athena service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants