o authenticate with your cloud provider of choice.We need first to install the SkyPilot integration for AWS and the AWS connectors extra, using the following two commands:

pip install "zenml[connectors-aws]"

zenml integration install aws skypilot_aws

To provision VMs on AWS, your VM Orchestrator stack component needs to be configured to authenticate with AWS Service Connector. To configure the AWS Service Connector, you need to register a new service connector configured with AWS credentials that have at least the minimum permissions required by SkyPilot as documented here.

First, check that the AWS service connector type is available using the following command:

zenml service-connector list-types --type aws

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

┃         NAME          │ TYPE   │ RESOURCE TYPES        │ AUTH METHODS     │ LOCAL │ REMOTE ┃

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

┃ AWS Service Connector │ 🔶 aws │ 🔶 aws-generic        │ implicit         │ ✅    │ ➖     ┃

┃                       │        │ 📦 s3-bucket          │ secret-key       │       │        ┃

┃                       │        │ 🌀 kubernetes-cluster │ sts-token        │       │        ┃

┃                       │        │ 🐳 docker-registry    │ iam-role         │       │        ┃

┃                       │        │                       │ session-token    │       │        ┃

┃                       │        │                       │ federation-token │       │        ┃

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

Next, configure a service connector using the CLI or the dashboard with the AWS credentials. For example, the following command uses the local AWS CLI credentials to auto-configure the service connector:

zenml service-connector register aws-skypilot-vm --type aws --region=us-east-1 --auto-configure