Skip to content
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

Feature request: Support Terraform #85

Open
lhchavez opened this issue Jan 26, 2022 · 0 comments · May be fixed by #86
Open

Feature request: Support Terraform #85

lhchavez opened this issue Jan 26, 2022 · 0 comments · May be fixed by #86

Comments

@lhchavez
Copy link

Terraform's GCP and Kubernetes providers don't use the gcloud or the kubectl commandline programs to perform changes. But they do honor the GOOGLE_OAUTH_ACCESS_TOKEN and KUBE_CONFIG_PATH environment variables. If the shell is modified to include these two variables, Terraform works transparently!

lhchavez added a commit to replit/ephemeral-iam that referenced this issue Jan 26, 2022
This change adds two environment variables to the shell in
`assume-privileges` so that Terraform can take advantage of this tool:

* `KUBE_CONFIG_PATH`, which Terraform recognizes as a way to override
  the kubectl config path.
* `GOOGLE_OAUTH_ACCESS_TOKEN`, which Terraform recognizes as a way to
  override the access token to assume the identity of another user.

Fixes: rigup#85
@lhchavez lhchavez linked a pull request Jan 26, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant