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]: add add_token_to_env provider argument #1007

Open
simonostendorf opened this issue Oct 7, 2024 · 0 comments
Open

[Feature]: add add_token_to_env provider argument #1007

simonostendorf opened this issue Oct 7, 2024 · 0 comments

Comments

@simonostendorf
Copy link

What whould you like to see?

I think it would be helpful to add the token to the env var HCLOUD_TOKEN if not already present.

This would help when using external scripts (e.g. terraform_data resource with local provisioner) that require a Hetzner Cloud API Token.

My usecase: I am checking if a hcloud snapshot exists (using the hcloud_images data source), if not I am calling the hcloud-upload-image binary using a terraform_data resource. So it would be helpful to use the same token as the provider and therefor the token must/should be exported as HCLOUD_TOKEN.

See example add_address_to_env from terraform-provider-vault

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

No branches or pull requests

1 participant