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 · 2 comments
Open

[Feature]: add add_token_to_env provider argument #1007

simonostendorf opened this issue Oct 7, 2024 · 2 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

Copy link

github-actions bot commented Jan 6, 2025

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

@github-actions github-actions bot added the stale label Jan 6, 2025
@simonostendorf
Copy link
Author

Not stale.

@jooola jooola added pinned and removed stale labels Jan 7, 2025
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

2 participants