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

Athena Database fails to destroy when resources do not exist #20037

Closed
overlordchin opened this issue Jul 1, 2021 · 3 comments
Closed

Athena Database fails to destroy when resources do not exist #20037

overlordchin opened this issue Jul 1, 2021 · 3 comments
Labels
bug Addresses a defect in current functionality. service/athena Issues and PRs that pertain to the athena service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.

Comments

@overlordchin
Copy link

parent ticket: #19932

Problem statement. When an aws_athena_database resource references a resource that no longer exists(has been destroyed outside of terraform), a terraform destroy will fail with one of the following errors:

Error: Athena not found database: 664df302_mydb, query result: 020dac9f_myquery
Error: reason: FAILED: SemanticException [Error 10072]: Database does not exist: c558ee8f_mydb

Expected behavior - A warning is displayed and the destroy continues to remove the resource as normal.

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jul 1, 2021
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. service/athena Issues and PRs that pertain to the athena service. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 1, 2021
@overlordchin
Copy link
Author

overlordchin commented Jul 6, 2021

here is is failing on a plan with a similar message:

module.message_bridge.module.athena.aws_athena_database.db: Refreshing state... [id=28ec6a6bmydb]
Error: Athena not found database: 28ec6a6bmydb, query result: 020dac9f_myquery

note that while the DB in question appears different the query result appears the same. This is in a different terraform workspace than the one listed above but seems to suffer from the same issue.

end result is a failed plan

expected behavior - plan detects thing does not exist and either creates it (if the terraform files still describe it) Or doesn't - accordingly.

@github-actions
Copy link

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Jun 26, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2023
@github-actions
Copy link

I'm going to lock this issue 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 similar to this, 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 Aug 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/athena Issues and PRs that pertain to the athena service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.
Projects
None yet
Development

No branches or pull requests

2 participants