Configure Google Cloud resources for an Anyscale cloud
Before you run Ray workloads on Anyscale, an Anyscale organization owner must configure Google Cloud resources for an Anyscale cloud. This integration enables Anyscale to manage resources like compute instances and storage directly in a GCP project.
Prerequisites
- Create a Google Cloud project for Anyscale to operate in.
- Install the Google Cloud CLI.
- Optional: Authenticate the Google Cloud CLI in the project.
1. Install the Anyscale CLI
- Run the following command to install the Anyscale CLI and Python client package:
pip install -U "anyscale[gcp]"
- To authenticate your credentials, run the following command, which fetches and updates the token that confirms your identity in the
~/.anyscale/credentials.json
file:
anyscale login
If necessary, log in to the Anyscale console to complete authentication.
2. Choose a resource configuration method
Configuring Google Cloud resources for an Anyscale cloud integrates Anyscale's capabilities into your GCP project to leverage its compute, storage, and networking resources for scalable, distributed computing.
You can use one of two different configuration methods that use the Anyscale CLI. Choose a method based on your organization's requirements:
anyscale cloud setup
- Use for rapid configuration and a straightforward, low-maintenance solution; deploy in public subnets and access over public IP addresses without setting up additional networking infrastructure.anyscale cloud register
- Suited for teams with advanced cloud expertise, seeking enhanced security, custom private networking, and specific compliance needs.