---
title: How to spin up a GCP sandbox ?
description: Step by step guide to spin up a GCP cloud sandbox inside AppSecEngineer learning platform
---

[Skip to content](https://help.appsecengineer.com/how-to-spin-up-a-gcp-sandbox#main-content)

English

Show submenu for translations

[![AppSecEngineer logo](https://help.appsecengineer.com/hubfs/AppSecEngineer%202023%20logo%20%20glasses%20MASTER-01.svg)](https://www.appsecengineer.com/)

- [Home](https://www.appsecengineer.com/)
- [Resources](https://www.appsecengineer.com/enterprises/blogs)
- [Course Library](https://www.appsecengineer.com/enterprises/courses)

Open main navigation

Close main navigation

- [Home](https://www.appsecengineer.com/)
- [Resources](https://www.appsecengineer.com/enterprises/blogs)
- [Course Library](https://www.appsecengineer.com/enterprises/courses)
- English
  
  Show submenu for translations

 How can we help you?

- There are no suggestions because the search field is empty.

1. [AppSecEngineer Knowledge Base](https://help.appsecengineer.com/?hsLang=en)
2. [Sandbox](https://help.appsecengineer.com/sandbox?hsLang=en)

# 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](https://console.cloud.google.com/) using the credentials from /root/gcp-creds.txt.

![GCP Sandbox screenshot ](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdBScGJn6oE1APi9BYugbQfn9I4WCfgVOMs2MaNS2mP2eun73sIAwmpog2Q1rwZSUjiOBtsjtYK6qT-fYVSFHbzD7m6JR8WOASEr8m-E1EKsmV9U9ewDjIIx_QGZXhxdb8-nZlE?key=NMYp9xwoNGx8cr8l2SYmJ-m9)  
Image Showing step to spin up a GCP sandbox

![Image of Google cloud console](https://lh7-rt.googleusercontent.com/docsz/AD_4nXe9vigFZYjSYJDPU-WJlaiNTJAsEUJtbGnBHtQXMEQvRJT6QFaJJ_r5qfqEXT4CL6gAm7MzzYMWU4Aurxz9wtpaVT3F-gzuZcW6kVhDHitj3343TOOF1K4iFoP-VRZdSiXS2g6j?key=NMYp9xwoNGx8cr8l2SYmJ-m9)  
Image featuring cloud console of appsecengineer's sandbox

Learn more about the concept of sandboxes with our detailed guide on [What are sandboxes](https://support.appsecengineer.com/portal/en/kb/articles/what-are-sandboxes)

<https://support.appsecengineer.com/portal/en/kb/articles/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.

 

- [Getting started](https://help.appsecengineer.com/getting-started?hsLang=en#main-content)
  
  
  
  
  
    - [Welcome to AppSecEngineer](https://help.appsecengineer.com/getting-started?hsLang=en#welcome-to-appsecengineer)
    - [ILT (Instructor Led Training)](https://help.appsecengineer.com/getting-started?hsLang=en#ilt-instructor-led-training)
    - [Onboarding Guide](https://help.appsecengineer.com/getting-started?hsLang=en#onboarding-guide)
    - [Platform Navigation](https://help.appsecengineer.com/getting-started?hsLang=en#platform-navigation)
    - [Quick Start Guide](https://help.appsecengineer.com/getting-started?hsLang=en#quick-start-guide)
- [Integrations](https://help.appsecengineer.com/integrations?hsLang=en)
- [Sandbox](https://help.appsecengineer.com/sandbox?hsLang=en)
- [Achievement](https://help.appsecengineer.com/achievement?hsLang=en)
- [Roadmap](https://help.appsecengineer.com/roadmap?hsLang=en)
- [Interviews](https://help.appsecengineer.com/interviews?hsLang=en)
- [Course recommendations](https://help.appsecengineer.com/course-recommendations?hsLang=en)
- [AppSecFlag](https://help.appsecengineer.com/appsecflag?hsLang=en)
- [Team Manager](https://help.appsecengineer.com/team-manager?hsLang=en)
- [Creator Studio](https://help.appsecengineer.com/creator-studio?hsLang=en)
- [Onboarding Guide](https://help.appsecengineer.com/onboarding-guide?hsLang=en)
- [Certification Pricing](https://help.appsecengineer.com/certification-pricing?hsLang=en)
- [Tournaments](https://help.appsecengineer.com/tournaments?hsLang=en)
- [Bootcamps](https://help.appsecengineer.com/bootcamps?hsLang=en)
- [Hands On Labs](https://help.appsecengineer.com/hands-on-labs?hsLang=en)
- [Users & Teams](https://help.appsecengineer.com/users-teams?hsLang=en#main-content)
  
  
  
  
  
    - [Users](https://help.appsecengineer.com/users-teams?hsLang=en#users)
    - [Teams](https://help.appsecengineer.com/users-teams?hsLang=en#teams)
- [Challenges](https://help.appsecengineer.com/challenges?hsLang=en#main-content)
  
  
  
  
  
    - [For individuals](https://help.appsecengineer.com/challenges?hsLang=en#for-individuals)
    - [For Admins](https://help.appsecengineer.com/challenges?hsLang=en#for-admins)
- [Report](https://help.appsecengineer.com/report?hsLang=en#main-content)
  
  
  
  
  
    - [User / Team Level Reports](https://help.appsecengineer.com/report?hsLang=en#user-team-level-reports)
    - [Feature Level Reports](https://help.appsecengineer.com/report?hsLang=en#feature-level-reports)
- [Assignments](https://help.appsecengineer.com/assignments?hsLang=en#main-content)
  
  
  
  
  
    - [For Individuals](https://help.appsecengineer.com/assignments?hsLang=en#for-individuals)
    - [For Admins](https://help.appsecengineer.com/assignments?hsLang=en#for-admins)
- [Learning Journeys](https://help.appsecengineer.com/learning-journeys?hsLang=en)
- [Certifications](https://help.appsecengineer.com/certifications?hsLang=en)
- [Pricing](https://help.appsecengineer.com/pricing?hsLang=en#main-content)
  
  
  
  
  
    - [Trial & Queries](https://help.appsecengineer.com/pricing?hsLang=en#trial-queries)
- [Subscription Cancellation](https://help.appsecengineer.com/subscription-cancellation?hsLang=en)

- [Home](https://www.appsecengineer.com/)
- [Resources](https://www.appsecengineer.com/enterprises/blogs)
- [Course Library](https://www.appsecengineer.com/enterprises/courses)

[![AppSecEngineer logo](https://help.appsecengineer.com/hubfs/AppSecEngineer%202023%20logo%20%20glasses%20MASTER-01.svg "AppSecEngineer logo")](https://www.appsecengineer.com/)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026,