-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backends - ability to use credentials fetched from Vault #31869
Comments
Thanks for sharing this use-case, @mtarnoci! A typical way to solve the problem of integrating external credentials sources with AWS is to specify an external credentials process in your AWS configuration. The S3 backend and the We typically expect backends and providers to be authenticated via the target platform's usual mechanisms, rather than within the Terraform language itself, because that then minimizes the exposure of your credentials to your Terraform modules where they might, for example, be accidentally shown onscreen as part of a plan. The S3 backend and A typical Terraform configuration should not set |
Same use-case here way with Vault and AWS creds, come across this prob with s3 backend. meanwhile, @mtarnoci did you manage some workaround for that? except of providing as env vars or anything related to .config or .credentials files (profile names of aws configure) |
I have the same use case. You can interpolate access credentials in the AWS provider, so why not with the S3 backend, especially if the use case is to use another Hashicorp product (in this case Vault) configured with an AWS Secrets backend for dynamic IAM provisioning. No need to store credential configurations either in the Terraform project or in plain text in configuration files on the machine. |
Same need, would love for this to work. :) |
It looks like you're trying to use values retrieved from a Terraform data source ( |
I think we all know that isn't supported, hence the issue / feature request. We would simply like the S3 backend block to behave the same as a providers block. |
OK, I'll update the issue. This isn't related to the S3 Backend specifically, but to any backend and how they can be configured. |
much needed feature. Any update on this @crw |
Any update on this? This would be a very useful feature for us :) |
No update, the information and recommendations in #31869 (comment) are still applicable. Note, may also be related to #13022. |
Terraform Version
Use Cases
When configuring Terraform backends, for example S3, it is not possible to use data fetched from the Vault in Credentials configuration.
Use case: to avoid to use credentials stored in .tf file in plain text.
Attempted Solutions
Proposal
No response
References
No response
The text was updated successfully, but these errors were encountered: