Skip to content
English
  • There are no suggestions because the search field is empty.

How to spin up a GCP sandbox ?

Spin up a GCP sandbox effortlessly by accessing the provisioned server, running initialization commands, configuring GCP CLI with generated credentials, and logging into the GCP Console for hands-on cloud security training.

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

  1. Replace 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 console
Image 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.