-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update authentication and service connector configurations
- Loading branch information
Showing
4 changed files
with
101 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,22 +29,36 @@ resource "zenml_service_connector" "gcp_connector" { | |
service_account_json = jsonencode({ | ||
"type": "service_account", | ||
"project_id": "my-gcp-project", | ||
# ... other service account details | ||
"private_key_id": "key-id", | ||
"private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n", | ||
"client_email": "[email protected]", | ||
"client_id": "client-id", | ||
"auth_uri": "https://accounts.google.com/o/oauth2/auth", | ||
"token_uri": "https://oauth2.googleapis.com/token" | ||
}) | ||
} | ||
labels = { | ||
environment = "production" | ||
team = "ml-ops" | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `name` - (Required) The name of the service connector. | ||
* `type` - (Required) The type of the service connector (e.g., "gcp", "aws", "azure"). | ||
* `auth_method` - (Required) The authentication method used by the service connector. | ||
* `user` - (Required) The ID of the user who owns this connector. | ||
* `workspace` - (Required) The ID of the workspace this connector belongs to. | ||
* `resource_types` - (Optional) A list of resource types this connector can be used for. | ||
* `configuration` - (Required) A map of configuration key-value pairs for the connector. | ||
* `secrets` - (Optional) A map of secret key-value pairs for the connector. These are sensitive and will not be output. | ||
* `type` - (Required, Forces new resource) The type of the service connector. Valid values include: `aws`, `gcp`, `azure`, and others depending on your ZenML version. | ||
* `auth_method` - (Required, Forces new resource) The authentication method used by the connector. Valid values include: | ||
* AWS: `iam-role`, `aws-access-keys`, `web-identity` | ||
* GCP: `service-account`, `oauth2`, `workload-identity` | ||
* Azure: `service-principal`, `managed-identity` | ||
* Kubernetes: `kubeconfig`, `service-account` | ||
* `user` - (Required, Forces new resource) The ID of the user who owns this connector. | ||
* `workspace` - (Required, Forces new resource) The ID of the workspace this connector belongs to. | ||
* `resource_types` - (Optional) A list of resource types this connector can be used for (e.g., `artifact-store`, `container-registry`, `orchestrator`). | ||
* `configuration` - (Required, Sensitive) A map of configuration key-value pairs for the connector. | ||
* `secrets` - (Optional, Sensitive) A map of secret key-value pairs for the connector. | ||
* `labels` - (Optional) A map of labels to associate with the connector. | ||
|
||
## Attributes Reference | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters