Open
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
- Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
- If an issue is assigned to the
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.
Terraform Version
1.4.4
provider registry.terraform.io/hashicorp/google v4.63.1
Affected Resource(s)
google_secret_manager_secret_version
Terraform Configuration Files
resource "google_secret_manager_secret_version" "version" {
secret = google_secret_manager_secret.secret.id
secret_data = "secret data here"
}
Expected Behavior
After running an apply the value of the latest version of the secret should contain the contents of secret_data
Actual Behavior
Latest version does not contain the contents of secret_data
Steps to Reproduce
terraform apply
- add a new version to the secret outside of terraform. e.g. via the console. Do not destroy the old version.
terraform apply
The apply on line 3 will show no changes, but it should have created a new version with the value of secret_data
Important Factoids
google_secret_manager_secret_version doesn't have any input value for version or a flag to ensure that the configured version is the latest.