Skip to content

Commit

Permalink
GCP notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpurge committed Oct 31, 2024
1 parent 30253bc commit 135a98c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
12 changes: 12 additions & 0 deletions content/docs/devops/gcp/cloud-shell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Cloud shell

Customize in `~/.customize_environment` (`edit .customize_environment`):

```sh
#!/bin/sh
TERRAFORM_VERSION="0.12.0"
curl https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip > terraform_${TERRAFORM_VERSION}_linux_amd64.zip
unzip -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin
```

Editor is based on Eclipse Theia.
16 changes: 15 additions & 1 deletion content/docs/devops/gcp/gcloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@ gcloud help
## Initialize environment

```sh
gcloud init
gcloud init
# or: gcloud init --console-only
```

To switch active account:

```sh
gcloud auth list
gcloud config set account [email protected]
```

## Get information
Expand All @@ -49,6 +56,13 @@ gcloud components remove COMPONENT
gcloud components update
```

## Beta commands interactive shell

```sh
gcloud components install beta
gcloud beta interactive
```

## Switch project

```sh
Expand Down

0 comments on commit 135a98c

Please sign in to comment.