You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ To authenticate, you will need a [service account](https://docs.stackit.cloud/st
42
42
When setting up authentication, the provider will always try to use the key flow first and search for credentials in several locations, following a specific order:
43
43
44
44
1. Explicit configuration, e.g. by setting the field `service_account_key_path` in the provider block (see example below)
45
-
2. Environment variable, e.g. by setting `STACKIT_SERVICE_ACCOUNT_KEY_PATH`
45
+
2. Environment variable, e.g. by setting `STACKIT_SERVICE_ACCOUNT_KEY_PATH` or `STACKIT_SERVICE_ACCOUNT_KEY`
46
46
3. Credentials file
47
47
48
48
The provider will check the credentials file located in the path defined by the `STACKIT_CREDENTIALS_PATH` env var, if specified,
@@ -99,13 +99,15 @@ To configure the key flow, follow this steps:
99
99
3. Configure the service account key for authentication in the provider by following one of the alternatives below:
100
100
101
101
- setting the fields in the provider block: `service_account_key` or `service_account_key_path`
102
-
- setting the environment variable: `STACKIT_SERVICE_ACCOUNT_KEY_PATH`
102
+
- setting the environment variable: `STACKIT_SERVICE_ACCOUNT_KEY_PATH` or `STACKIT_SERVICE_ACCOUNT_KEY`
103
+
- ensure the set the service account key in `STACKIT_SERVICE_ACCOUNT_KEY` is correctly formatted. Use e.g.
- setting `STACKIT_SERVICE_ACCOUNT_KEY_PATH` in the credentials file (see above)
104
106
105
107
> **Optionally, only if you have provided your own RSA key-pair when creating the service account key**, you also need to configure your private key (takes precedence over the one included in the service account key, if present). **The private key must be PEM encoded** and can be provided using one of the options below:
106
108
>
107
109
> - setting the field in the provider block: `private_key` or `private_key_path`
108
-
> - setting the environment variable: `STACKIT_PRIVATE_KEY_PATH`
110
+
> - setting the environment variable: `STACKIT_PRIVATE_KEY_PATH` or `STACKIT_PRIVATE_KEY`
109
111
> - setting `STACKIT_PRIVATE_KEY_PATH` in the credentials file (see above)
0 commit comments