-
Notifications
You must be signed in to change notification settings - Fork 48
Open
stackitcloud/stackit-sdk-go
#3865Labels
Description
Description
It would be highly beneficial if the STACKIT Terraform Provider could automatically fall back to an active stackit CLI authentication session. This would allow users to authenticate via the stackit CLI and seamlessly use Terraform locally, without requiring additional manual authentication steps.
Current Workaround
At the moment, this behavior can be manually achieved by retrieving an access token via the CLI and exporting it as an environment variable:
stackit auth login
export STACKIT_SERVICE_ACCOUNT_TOKEN=$(stackit auth get-access-token 2>/dev/stdout)
terraform init && terraform applyProposed Enhancement
Enable the Terraform provider to detect and utilize the existing CLI session automatically, similar to how other cloud providers (e.g., Azure CLI, AWS CLI) handle authentication fallback in their Terraform providers. This would greatly improve the developer experience and streamline local workflows.
Zaunei, stefanvocke, HartmannVolker, kevinkupski, wonko and 3 more