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:
Steps:
-
Click the Access button to connect to the provisioned server.
-
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:
-
Authenticate:
gcloud auth activate-service-account --key-file=/root/service-key.json
-
Set the project:
gcloud config set project
-
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.
Image Showing step to spin up a GCP sandbox
Image featuring cloud console of appsecengineer's sandbox
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.