You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GCP resources google_kms_key_ring and google_kms_crypto_key can't be deleted. This is by design. But if they already exist, terraform should skip their creation and not break the deployment.
Actual Behavior
When resource google_kms_key_ring already exists, calling terraform apply throws the Error 409: alreadyExists, which breaks the deployment:
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Nov 16, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
GCP resources
google_kms_key_ring
andgoogle_kms_crypto_key
can't be deleted. This is by design. But if they already exist, terraform should skip their creation and not break the deployment.Actual Behavior
When resource
google_kms_key_ring
already exists, callingterraform apply
throws the Error 409: alreadyExists, which breaks the deployment:Steps to Reproduce
terraform apply
<- google_kms_key_ring does not exist yet, command succeedsterraform destroy
terraform apply
<- this is where terraform throws Error 409: alreadyExists.The text was updated successfully, but these errors were encountered: