Skip to content

Instantly share code, notes, and snippets.

View maksoodmohiuddin's full-sized avatar
🎯
Focusing on Open Source Contribution

Maksood Mohiuddin maksoodmohiuddin

🎯
Focusing on Open Source Contribution
  • McKinsey & Company
  • United States
View GitHub Profile
@maksoodmohiuddin
maksoodmohiuddin / gcloud-project.md
Created November 3, 2023 15:00
Update Google Cloud Shell Console to use your project

gcloud config set project [YOUR GOOGLE CLOUD PROJECT]

gcloud config list

cd infra
nano variables.tf
variable "project_id" {
description = "Project ID of the GCP project where resources will be deployed"
type = string
default = "PLEASE UPDATE WITH YOUR GOOGLE PROJECT ID"
}
variable "location" {

terraform init

terraform plan

terraform apply

cd ../app/backend/ nano -l firestore.py

client = firestore.Client(project="PLEASE_UPDATE_PROJECT_ID")

cat backend-cloudbuild.yaml gcloud builds submit --region=[YOUR GOOGLE CLOUD REGION] --config backend-cloudbuild.yaml e.g. gcloud builds submit --region=us-west2 --config backend-cloudbuild.yaml

cd ../../infra cat api-gateway--espv2-definition.yml.tmpl