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.


    • Related Articles

    • How to spin up an Azure sandbox

      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 an Azure sandbox, run: asectl init azure A sandbox environment in Azure will be created, ...
    • How to spin up a AWS cloud sandbox

      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 an AWS sandbox, run: asectl init aws A sandbox environment in AWS will be created, generating ...
    • What are sandboxes

      In AppSecEngineer, Sandboxes are the easiest and most secure way to learn Cloud security since you don't need to use your own cloud account or expose your Cloud infrastructure to the simulated attacks we'll be performing in our Labs all of our Cloud ...
    • GCP Security Roadmap

      Of the top 3 cloud providers, Google Cloud has the least amount of high-quality security training out there. The GCP Security Collection by AppSecEngineer aims to fill that void with a uniquely hands-on approach to cloud security. This Collection ...
    • Logging in to AppSecEngineer

      This guide walks you through signing into the AppSecEngineer Platform for employee training. From choosing the sign-in method to accessing the learning portal, these steps will streamline your onboarding experience. Open your browser and go to ...