"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;

November 22, 2023

Secure Google App Engine App - Streamlit App

1. Steps to build/ deploy sample App


GCP Command Shell Steps
============================
Step #1 - git clone https://github.com/praneethkvs/streamlit-test-app
Step #2 - cd streamlit-test-app
Step #3 - docker build -t asia.gcr.io/smartretail/streamlit-test-app .
Step #4 - Add rights on https://console.cloud.google.com/iam-admin/iam, Role is "Storage Admin" as explained in [1]
Step #5 - gcloud auth login
Step #6 - docker push asia.gcr.io/smartretail/streamlit-test-app
Step #7 - gcloud init
Step #8 - create app.yaml file
service: streamlit-test-app
runtime: custom
env: flex
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 2
disk_size_gb: 10
Step #9 - gcloud app deploy app.yaml
gcloud auth list
gcloud components update

2. Enable IAP for App Engine


Add users
To grant access to the application, 
click "Add Principal" 
select the IAP-secured Web App User role






Keep Exploring!!!

No comments: