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
Using the data resource vault_aws_access_credentials should be supported when using Terraform in automation. Currently the data resource is not refreshed between a plan and apply. After a plan the dynamic user is removed however it still referenced in the plan file causing an apply to fail.
Attempted Solutions
terraform apply -refresh=true - Not applicable as the plan file is given directly.
terraform refresh -target=data.vault_aws_access_credentials.my_vault_creds - causes an apply failure Error: Saved plan is stale
Proposal
Add a lifecycle hook to refresh this data and create a new dynamic user.
Current Terraform Version
Use-cases
Using the data resource vault_aws_access_credentials should be supported when using Terraform in automation. Currently the data resource is not refreshed between a plan and apply. After a plan the dynamic user is removed however it still referenced in the plan file causing an apply to fail.
Attempted Solutions
terraform apply -refresh=true
- Not applicable as the plan file is given directly.terraform refresh -target=data.vault_aws_access_credentials.my_vault_creds
- causes an apply failureError: Saved plan is stale
Proposal
Add a
lifecycle
hook to refresh this data and create a new dynamic user.References
https://github.com/hashicorp/terraform-guides/tree/master/infrastructure-as-code/dynamic-aws-creds
The text was updated successfully, but these errors were encountered: