Cloud Shell Flashcards
What is Cloud Shell and what are its 5 main features?
Cloud Shell is a free VM used to develop applications and manage GCP services.
- 5GB of free storage mounted to the $HOME directory
- gcloud CLI
- Code Editor with Cloud Code support
- Pre-installed packages (relevant):
- Text editors: Emacs, Vim, Nano
- Build tools: Gradle, Maven
- Git
- Docker
- Terraform
- Java
- Web preview
You can install additional software that will persist if you use the $HOME directory.
To see the full list of pre-installed software, visit: https://cloud.google.com/shell/docs/how-cloud-shell-works#tools
What are the 3 different ways to configure Cloud Shell?
- Configure
$HOME/.bashrc
script - Configure the
$Home/.customize_environment
script - Use a container image
What is gcloud CLI?
gcloud CLI is the CLI used to manage GCP services
What is Cloud Code?
Cloud Code is an IDE plugin that makes it easier to create, deploy, and integrate applications with GCP.Cloud Code allows you to enable GCP APIs and download client libraries without leaving your IDE.
Is it possible to connect to Cloud Shell using a local CLI?
Yes. You will need to install gcloud CLI locally and use the gcloud cloud-shell
command.
Cloud Shell is not directly associated with or managed by any specific project. In fact, Cloud Shell has the ability to point to any project.
What is the preferred command line tool to interact with Cloud Storage?
Google recommends using gcloud storage
instead of gsutil
which is now considered legacy.
Which gcloud command allows you to install a specific component?
gcloud components install <component-name>
Does Cloud Code integrate with Secret Manager?
Yes. This lets you manage your sensitive data within your IDE.
Which gcloud command does Google recommand using for emulators?
gcloud beta emulators <emulator-name>
There are 4 available emulators:
1. Spanner
2. Firestore
3. Bigtable
4. Pub/Sub