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

Add command to export credentials to env vars #57

Open
antonbabenko opened this issue Apr 6, 2022 · 0 comments
Open

Add command to export credentials to env vars #57

antonbabenko opened this issue Apr 6, 2022 · 0 comments

Comments

@antonbabenko
Copy link

After login using spacectl profile login <something>, it would be great to be able to export these credentials as env variables expected by Spacelift provider for Terraform - SPACELIFT_API_KEY_ENDPOINT, SPACELIFT_API_KEY_ID and SPACELIFT_API_KEY_SECRET.

This way, it is possible to set credentials automatically depending on the current dir (e.g., I use precmd() already for this) or by running a command explicitly like this:
exec $(spacectl profile export <something>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant