-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoogle Cloud Secrets Setup.txt
More file actions
40 lines (21 loc) · 1.13 KB
/
Google Cloud Secrets Setup.txt
File metadata and controls
40 lines (21 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Install the Google Cloud Console
## Windows
# Install the Google Cloud CLI installer
(New-Object Net.WebClient).DownloadFile("https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe", "$env:Temp\GoogleCloudSDKInstaller.exe")
& $env:Temp\GoogleCloudSDKInstaller.exe
## Linux
# Update the apt repository packages
sudo apt update
# Install HTTPS, SSL, and API request packages
sudo apt-get install apt-transport-https ca-certificates gnupg curl
# Install the Google Cloud console public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
# Unpack the Google Cloud public key console archive, add it to the environment variables, and install its distribution
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Install the Google Cloud console CLI
sudo apt-get update && sudo apt-get install google-cloud-cli
# Initialise the Google Cloud Console (Windows / Linux)
gcloud init
gcloud auth application-default login
```