Closed carlosrodlop closed 5 months ago
Try by including an alias like this but including a random number
It is related also with : https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon/issues/61
Try by including an alias like this but including a random number
When adding a random number to KMS alias, it fails EKS creation with https://github.com/hashicorp/terraform/issues/29957
Things I tried without success:
kms_key_alias = ["eks/${time_static.epoch.unix}"]
instead of the random approach kms_key_alias = ["eks/${random_string.this.result}"]
I am deleting this issue it has not been longer reproduced for a long time
Description
From time to time, the terraform command fails with
It only happens in the CI pipeline that it using a s3 as backend.
If your request is for a new feature, please use the
Feature request
template.⚠️ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]:
Terraform version:
Provider version(s):
Reproduction Code [Required]
Steps to reproduce the behavior:
Expected behavior
Actual behavior
Terminal Output Screenshot(s)
Additional context
It is similar to what is explained in https://stackoverflow.com/questions/62654684/terraform-alreadyexistsexception-an-alias-with-the-name-arnawskmsxxxxxxxxxx. Two hypotheses for this behaviour: