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
As described in hashicorp/terraform-provider-vault#1221, I am facing an issue with looking up Vault secrets via data sources when running plan and apply more than 15 minutes apart, where the provider authentication becomes outdated. I would like to force the apply command to perform the data source lookup, and to ensure that the provider credentials during the apply step are what is used, even if a planfile is specified.
Attempted Solutions
I am not sure where to start here
Proposal
Add a lifecycle parameter for data sources like force_known_after_apply
where an attribute inside the data source uses output from the ever-changing timestamp function, but doesn't actually use it.
This is an awkward UX, and the output is less clear as the path value isn't known until after apply either, but it's a seemingly viable workaround for the time being
Thanks for filing the issue. The idea proposed here unfortunately does not work in the sense that it will prevent terraform from converging on a clean plan, nor can it supply the credentials to the provider during the planing operation at all. In order to do these things, a new solution is going to be required, which we have an open issue to track the idea here #29182.
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.
Current Terraform Version
1.10.0
Use-cases
As described in hashicorp/terraform-provider-vault#1221, I am facing an issue with looking up Vault secrets via data sources when running
plan
andapply
more than 15 minutes apart, where the provider authentication becomes outdated. I would like to force theapply
command to perform the data source lookup, and to ensure that the provider credentials during theapply
step are what is used, even if a planfile is specified.Attempted Solutions
I am not sure where to start here
Proposal
Add a lifecycle parameter for data sources like
force_known_after_apply
References
hashicorp/terraform-provider-vault#1221
The text was updated successfully, but these errors were encountered: