-
Notifications
You must be signed in to change notification settings - Fork 10
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
Not able to pull secrets using terraform #87
Comments
The above issue code resolved, if someone can help in how to pass my secret to gcp credentials provider "google" { │ on main.tf line 38, in provider "google": |
In think, in order to pass a variable into provider you have to have that provider block be inside a sub-module and pass it in as a variable. I suggest asking ChatGPT or Claude on how to accomplish a dynamic provider credential. |
From what I know about terraform, the providers are always initialized during the init phase and you can not have values from a data source in the configuration as data sources are read just later in the plan phase. What I do to use a secret from akeyless which is needed to configure the akeyless provider itself is to load the secret upfront using the akeyless CLI and set the value to the ENV-variable AKEYLESS_ACCESS_KEY. With this you don't have to specify the key in the configuration at all, it just gets sourced from the ENV variable. |
this is my code and when run terraform apply , i get
❯ terraform apply
╷
│ Error: authentication failed: {"error":"MissingRequiredParam","message":"Missing required parameter - access_id "}
│
│
│ with provider["registry.terraform.io/akeyless-community/akeyless"],
│ on main.tf line 10, in provider "akeyless":
│ 10: provider "akeyless" {
i want to basically pull my gcp secrets and pass to terraform
The text was updated successfully, but these errors were encountered: