This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Task 1. | |
gcloud auth list | |
gsutil cp gs://cloud-training/gsp323/lab.csv . | |
gsutil cp gs://cloud-training/gsp323/lab.schema . | |
cat lab.schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Task 1 & 2. | |
export SANAME=challenge | |
gcloud iam service-accounts create $SANAME | |
gcloud projects add-iam-policy-binding $DEVSHELL_PROJECT_ID --member=serviceAccount:$SANAME@$DEVSHELL_PROJECT_ID.iam.gserviceaccount.com --role=roles/bigquery.admin | |
gcloud projects add-iam-policy-binding $DEVSHELL_PROJECT_ID --member=serviceAccount:$SANAME@$DEVSHELL_PROJECT_ID.iam.gserviceaccount.com --role=roles/storage.admin | |
gcloud iam service-accounts keys create sa-key.json --iam-account $SANAME@$DEVSHELL_PROJECT_ID.iam.gserviceaccount.com | |
export GOOGLE_APPLICATION_CREDENTIALS=${PWD}/sa-key.json | |
gsutil cp gs://$DEVSHELL_PROJECT_ID/analyze-images.py . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################### | |
## Set Up and Configure a Cloud Environment in Google Cloud: Challenge Lab # GSP321 ## | |
###################################################################################### | |
====================== TASK 1: Create development VPC manually ====================== | |
gcloud compute networks create griffin-dev-vpc --subnet-mode custom | |
gcloud compute networks subnets create griffin-dev-wp --network=griffin-dev-vpc --region us-east1 --range=192.168.16.0/20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################### | |
## Automating Infrastructure on Google Cloud with Terraform: Challenge Lab # GSP345 ## | |
###################################################################################### | |
====================== Setup : Create the configuration files ====================== | |
Make the empty files and directories in Cloud Shell or the Cloud Shell Editor. | |
------------------------------------------------------------------------------------ | |
touch main.tf | |
touch variables.tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################### | |
## Google Cloud Essential Skills: Challenge Lab # GSP101 ## | |
###################################################################################### | |
====================== Task 1: Create a Compute Engine instance, add necessary firewall rules ====================== | |
//Goto Compute Engine -> VM Instannces -> Create Instance. | |
Name : apache | |
Zone : us-central1-a |