How to spin up a GCP cloud sandbox

How to spin up a GCP sandbox

Before

Steps:
  1. Click the Access button to connect to the provisioned server.

  2. Open the terminal by selecting the Terminal option and choosing New Terminal.

To create a GCP sandbox, run:

asectl init gcp

  • Credentials will be stored in /root/gcp-creds.txt and /root/service-key.json.

Configure the GCP CLI:

  1. Authenticate:

gcloud auth activate-service-account --key-file=/root/service-key.json

  1. Set the project:

gcloud config set project <project-id>

  1. Replace <project-id> with the project ID from /root/service-key.json.

Access the GCP Console:

  • Log in at GCP Console using the credentials from /root/gcp-creds.txt.

GCP Sandbox screenshot Image Showing step to spin up a GCP sandbox

Image of Google cloud consoleImage featuring cloud console of appsecengineer's sandbox
Learn more about the concept of sandboxes with our detailed guide on What are sandboxes.

Cloud sandboxes make hands-on security training accessible and risk-free. With instant provisioning and zero setup overhead, you can focus on learning critical cloud security skills rather than infrastructure management. Start exploring our labs today with these ready-to-use environments.