Google App Engine
Prerequisites
- Google Cloud Project
- BigQuery API Enabled
- Mapbox Token
In this guide you will create:
- Cloud SQL DB
- Cloud Storage Bucket
- App Engine App (Flexible environment)
- Configure Access to specific Google Accounts with Google IAP
Steps
- Create db instance
gcloud sql instances create ${DB_INSTANCE_NAME} \
--database-version=POSTGRES_12 \
--tier=db-f1-micro\
--region=europe-west1
- Create database
gcloud sql databases create dekart --instance=${DB_INSTANCE_NAME}
- Set password; can be not secret, because there is one more layer of encryption and authorization in Cloud SQL
gcloud sql users set-password postgres --instance=${DB_INSTANCE_NAME} --password=dekart
- Create storage
gsutil mb -b on -l europe-west1 gs://${BUCKET}/
- Create App Engine App
gcloud app create --region=europe-west
Create Dockerfile
Create app.yaml
Deploy app
gcloud app deploy app.yaml
- Configure Google IAP (works only with web console)