Description
Currently, authentication with the Terraform provider can be configured using:
- The
service_account_key parameter, which requires passing the service account key directly.
- The
service_account_key_path parameter, which points to a file containing the key.
Additionally, authentication can be set using the environment variable STACKIT_SERVICE_ACCOUNT_KEY_PATH.
Requested Feature
This feature request proposes supporting the environment variable STACKIT_SERVICE_ACCOUNT_KEY as an alternative to the service_account_key provider configuration property.
Use Case
Allowing authentication via STACKIT_SERVICE_ACCOUNT_KEY would simplify CI/CD workflows, particularly in GitHub Actions (and likely other CI/CD environments).
Currently, storing the service account key in a GitHub Secret requires workarounds, such as:
- Writing the secret to a temporary file and setting
STACKIT_SERVICE_ACCOUNT_KEY_PATH.
- Using a custom Terraform variable (
stackit_service_account_key) and passing it via the TF_VAR_stackit_service_account_key environment variable.
By supporting STACKIT_SERVICE_ACCOUNT_KEY, we could eliminate the need for these workarounds, allowing direct authentication using a GitHub Secret.
Current Workaround
variable "stackit_service_account_key" {
type = string
sensitive = true
}
provider "stackit" {
service_account_key = var.stackit_service_account_key
}
Description
Currently, authentication with the Terraform provider can be configured using:
service_account_keyparameter, which requires passing the service account key directly.service_account_key_pathparameter, which points to a file containing the key.Additionally, authentication can be set using the environment variable
STACKIT_SERVICE_ACCOUNT_KEY_PATH.Requested Feature
This feature request proposes supporting the environment variable
STACKIT_SERVICE_ACCOUNT_KEYas an alternative to theservice_account_keyprovider configuration property.Use Case
Allowing authentication via
STACKIT_SERVICE_ACCOUNT_KEYwould simplify CI/CD workflows, particularly in GitHub Actions (and likely other CI/CD environments).Currently, storing the service account key in a GitHub Secret requires workarounds, such as:
STACKIT_SERVICE_ACCOUNT_KEY_PATH.stackit_service_account_key) and passing it via theTF_VAR_stackit_service_account_keyenvironment variable.By supporting
STACKIT_SERVICE_ACCOUNT_KEY, we could eliminate the need for these workarounds, allowing direct authentication using a GitHub Secret.Current Workaround