by running:

'zenml service-connector register -i'The second step is registering a Service Connector that effectively enables ZenML to authenticate to and access one or more remote resources. This step is best handled by someone with some infrastructure knowledge, but there are sane defaults and auto-detection mechanisms built into most Service Connectors that can make this a walk in the park even for the uninitiated. For our simple example, we're registering an AWS Service Connector with AWS credentials automatically lifted up from your local host, giving ZenML access to the same resources that you can access from your local machine through the AWS CLI.

This step assumes the AWS CLI is already installed and set up with credentials on your machine (e.g. by running aws configure).

zenml service-connector register aws-s3 --type aws --auto-configure --resource-type s3-bucket

Example Command Output

⠼ Registering service connector 'aws-s3'...

Successfully registered service connector `aws-s3` with access to the following resources:

┏━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓

┃ RESOURCE TYPE │ RESOURCE NAMES                        ┃

┠───────────────┼───────────────────────────────────────┨

┃ 📦 s3-bucket  │ s3://aws-ia-mwaa-715803424590         ┃

┃               │ s3://zenbytes-bucket                  ┃

┃               │ s3://zenfiles                         ┃

┃               │ s3://zenml-demos                      ┃

┃               │ s3://zenml-generative-chat            ┃

┃               │ s3://zenml-public-datasets            ┃

┃               │ s3://zenml-public-swagger-spec        ┃

┗━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

The CLI validates and shows all S3 buckets that can be accessed with the auto-discovered credentials.

The ZenML CLI provides an interactive way of registering Service Connectors. Just use the -i command line argument and follow the interactive guide:

zenml service-connector register -i