-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Creating CloudWatch Log Group failed: ResourceAlreadyExistsException: #67
Comments
I am facing this same issue. I can see in the logs that Terraform is able to destroy the EKS cluster and the CWLogGroup. I can also see those delete operations in CloudTrail. But just 1 second after the DeleteLogGroup operation, EKS automatically re-creates the CWLogGroup. CloudTrail message - CWLogGroup deleted by Terraform:
CloudTrail message - CWLogGroup created by EKS (just 1 second after TF deleted it):
|
Same problem here |
Looks like the solution may be to disable CreateLogGroup permissions in IAM role for vpc flow logs which most likely is causing the recreation of the log group. This module already creates the log group using terraform and eks already depends on the log group. See hashicorp/terraform#14750 (comment) @tatitati @luisllm try removing CreateLogGroup from the iam role used by your vpc flow logs, as recommended in the above comment. I'm curious if that fixes it. Note: the aws docs's example shows using an iam policy with the above permission (also noted by the linked comment). |
Looks like we can copy the fix from terraform-aws-modules/terraform-aws-eks#1594 |
@nitrocode @Nuru Currently working on https://github.com/gruntwork-io/terraform-aws-eks/releases/tag/v0.48.0, seeing the below error
Don't see any existing resource with that name to import as well
Not sure if this is the right method to import
Can you please suggest? Thanks |
what
why
See: hashicorp/terraform#14750, terraform-aws-modules/terraform-aws-eks#920
fix for tests
The text was updated successfully, but these errors were encountered: