[WIP] Check for ClusterNotFoundException when reading ECS service#15927
Conversation
bflad
left a comment
There was a problem hiding this comment.
Hi @adam-tylr 👋 Thank you for submitting this fix. Given the API Reference and behavior you documented very well (thank you!), this fix seems valid and likely would not be pragmatic to try and replicate in an acceptance test. Given the fix type and good looking implementation, I'm going to merge this as-is. Thanks! 🚀
|
This has been released in version 3.15.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 for triage. Thanks! |
|
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #15917
Release note for CHANGELOG:
WIP
I think this will fix the issue but I'm not sure how to write acceptance tests for it. Deleting the cluster doesn't make it immediately disappear from the account. The only way I know of to simulate the error without waiting for days is to update the state after manually deleting the service to point to an invalid cluster ARN. Then when terraform tries to read the service it will get the exception. I can't figure out how to do that in the tests. I tried messing with
terraform.Statebut it seems like that's only there for reading