How to fix.
Plan: 1 to add, 0 to change, 0 to destroy. module.eks.aws_cloudwatch_log_group.this[0]: Creating... ╷ │ Error: creating CloudWatch Logs Log Group (/aws/eks/devops-nimtechnology/cluster): ResourceAlreadyExistsException: The specified log group already exists │ │ with module.eks.aws_cloudwatch_log_group.this[0], │ on .terraform/modules/eks/main.tf line 80, in resource "aws_cloudwatch_log_group" "this": │ 80: resource "aws_cloudwatch_log_group" "this" { │ ╵ Releasing state lock. This may take a few moments...
https://github.com/terraform-aws-modules/terraform-aws-eks/issues/411
Chúng ta cần import cái đó vào trong terraform.tfstate
mình đã thử xóa cloudwatch group đó nhưng không hiệu quả. ==> được tạo lại ngay.
terraform import module.eks.aws_cloudwatch_log_group.this[0] "/aws/eks/devops-nimtechnology/cluster"