File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff 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
5050provider "zenml" {
@@ -61,9 +61,21 @@ in your dashboard:
6161
6262It 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+
6677You can also use environment variables:
78+
6779``` bash
6880export ZENML_SERVER_URL=" https://your-zenml-server.com"
6981export ZENML_API_KEY=" your-api-key"
@@ -88,7 +100,7 @@ zenml service-account create <MYSERVICEACCOUNTNAME>
88100
89101This 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
93105Alternatively, you can use an API token for authentication:
94106
You can’t perform that action at this time.
0 commit comments