Skip to content

Commit 643b23e

Browse files
authored
more README
1 parent 21c7220 commit 643b23e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ terraform {
4444

4545
### Authentication
4646

47-
Configure the provider with your ZenML server URL and API key:
47+
Configure the provider with your ZenML server URL and API key or API token.
4848

4949
```hcl
5050
provider "zenml" {
@@ -61,9 +61,21 @@ in your dashboard:
6161

6262
It should look like something like `https://1bfe8d94-zenml.cloudinfra.zenml.io`.
6363

64+
You have two options to provide a token or key:
65+
6466
#### Option 1: Using `ZENML_API_KEY`
6567

68+
You can input the `ZENML_API_KEY` as follows:
69+
70+
```hcl
71+
provider "zenml" {
72+
server_url = "https://your-zenml-server.com"
73+
api_key = "your-api-key"
74+
}
75+
```
76+
6677
You can also use environment variables:
78+
6779
```bash
6880
export ZENML_SERVER_URL="https://your-zenml-server.com"
6981
export ZENML_API_KEY="your-api-key"
@@ -88,7 +100,7 @@ zenml service-account create <MYSERVICEACCOUNTNAME>
88100

89101
This command will print out the `ZENML_API_KEY` that you can use with this provider.
90102

91-
#### Option 1: Using `ZENML_API_TOKEN`
103+
#### Option 2: Using `ZENML_API_TOKEN`
92104

93105
Alternatively, you can use an API token for authentication:
94106

0 commit comments

Comments
 (0)