-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
aws_cloudwatch_log_group does not destroy #1019
Comments
The problem here, in my experience, is that the cloudwatch log group is deleted by Terraform but the EKS service continues to write logs after claiming to have been completely shut down. You end up with the log group recreated without an expiry policy set. We cannot just revoke I don't think there's anything we, as a terraform module, can do here. The aws provider issue you linked to was closed because there's nothing they can do either. You can try raising an issue on the containers-roadmap to see if there's anything the AWS team itself can do. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity since being marked as stale. |
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. |
I have issues
I'm submitting a...
What is the current behavior?
After a cluster have been destroyed, trying to recreate the cluster will fail with
If this is a bug, how to reproduce? Please include a code sample if relevant.
terraform init
terraform apply
terraform destroy
What's the expected behavior?
If terraform creates the log group, the cluster should not have the permission to create it does not exist.
Are you able to fix this problem and submit a PR? Link here if you have already.
This is related to hashicorp/terraform-provider-aws#14057 and removing the
logs:CreateLogGroup
permission might fix the issue.Workaround
Either
terraform import
the current log group, or delete it manually.Environment details
Any other relevant info
The text was updated successfully, but these errors were encountered: