[Bug]: Importing aws_secretsmanager_secret_version
causes recreation due to secret_id
changing from arn to path
#37937
Labels
bug
Addresses a defect in current functionality.
service/secretsmanager
Issues and PRs that pertain to the secretsmanager service.
Terraform Core Version
1.8.1
AWS Provider Version
5.53.0
Affected Resource(s)
Expected Behavior
Import without recreation on a subsequent plan/apply
Actual Behavior
Import
Plan
The
secret_id
wants to change from the full arnarn:aws:secretsmanager:us-east-1:snip:secret:devops/test/oidc-H0eZ70
to only the pathdevops/test/oidc
.I also tried modifying the
secret_id
by pulling the state, modifying, and pushing it back up. Same result.I also tried deleting from the state and reimporting using only the path instead of the full arn and the import did not work.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
See above
Debug Output
N/A
Panic Output
N/A
Important Factoids
N/A
References
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: