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
The domain name should be created, but the private key should not be stored in the state file
Actual Behavior
The domain name is created, but the private key is stored in the state file
Steps to Reproduce
terraform apply
Important Factoids
You can't get the private key from the AWS API, and you can't change it once it's set either. If you do try to change it in terraform, and then running terraform apply, you get
BadRequestException: Invalid patch path '/certificate_private_key' specified for op 'replace'. Must be one of: [/certificateName]
or if changing the certificate
BadRequestException: Invalid patch path '/certificate_body' specified for op 'replace'. Must be one of: [/certificateName]
which is to be expected if trying to update them, since they can't be updated via the API. However, since it can't be updated, it seems needless to store it in the state file, as nothing can come of it. At most, I imagine maybe storing a hash of the key/certificates, with some mechanism of telling the user that they need to do something outside of terraform?
The text was updated successfully, but these errors were encountered:
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.
ghost
locked and limited conversation to collaborators
Apr 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.7.9
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The domain name should be created, but the private key should not be stored in the state file
Actual Behavior
The domain name is created, but the private key is stored in the state file
Steps to Reproduce
terraform apply
Important Factoids
You can't get the private key from the AWS API, and you can't change it once it's set either. If you do try to change it in terraform, and then running
terraform apply
, you getor if changing the certificate
which is to be expected if trying to update them, since they can't be updated via the API. However, since it can't be updated, it seems needless to store it in the state file, as nothing can come of it. At most, I imagine maybe storing a hash of the key/certificates, with some mechanism of telling the user that they need to do something outside of terraform?
The text was updated successfully, but these errors were encountered: