Closed kjkuan closed 9 months ago
@kjkuan Just letting you know that I've opened a PR (referenced) that fixes the issue you reported. Works on our end ™️ (and tests'), but if you're blocked, you can also test it.
To maintainers, the issue is also blocking us (SumUp) from using terraform-provider-aws
with SecretsManager resources.
Any chance we can get this fixed? The referenced PR is still eager to be reviewed 🥳
Any ETA for the fix? this will be useful to force update changes made to secrets outside of terraform
have the same error
This bug also affects us
still isn't fixed :(
This functionality has been released in v5.33.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
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.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Any use of the
aws_secretsmanager_secret_version
resource withversion_stages
set to[ "AWSCURRENT" ]
.Expected Behavior
If
aws_secretsmanager_secret_version
is told to set theAWSCURRENT
label but the label is currently on a different version (e.g., one that's created by manually updating the secret in Secrets Manager in AWS console), then terraform should move the label back to the version tracked by terraform.Actual Behavior
With a plan like this:
We got an error like this:
Steps to Reproduce
version_stages
to[ "AWSCURRENT" ]
for aaws_secretsmanager_secret_version
resourceterraform apply
AWSCURRENT
label is moved to a different version than the one tracked by terraform.terraform apply
References