[Bug]: Athena - aws_athena_data_catalog fails for federated type data sources #41050
Labels
bug
Addresses a defect in current functionality.
service/athena
Issues and PRs that pertain to the athena service.
Terraform Core Version
1.9.8
AWS Provider Version
5.84.0
Affected Resource(s)
aws_athena_data_catalog
Expected Behavior
I would expect the terraform provider to successfully create the data source and all dependent resources.
Actual Behavior
Terraform fails immediately and does not wait for the resource(s) to be created. This is probably due to the fact that Athena creates these resources asynchronously and therefore the resource doesn't exist for a period (until dependent resources have finished creation). Downstream it seems like the following resources are created
Although the failure happens, assuming the configuration is correct the resource does eventually create correctly. However, if terraform is then re-applied the resource is marked as tainted and is deleted.
Relevant Error/Panic Output Snippet
Error: listing tags for Athena Data Catalog (ARN): operation error Athena: ListTagsForResource, https response error StatusCode: 400, RequestID: ... ResourceNotFoundException: Could not find valid resource from ARN:..
Terraform Configuration Files
Steps to Reproduce
Snippet like the above with appropriate connection details to a given DB.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: