- Create a Google Cloud Platform project if not already.
- Go to App Engine service and create a new App. This will create a free Tier bucket for your files. You might need the
App Engine Admin
permission role. - a. If running locally: Install Google Cloud CLI for your OS. Initialize the CLI with
gcloud init
and follow the instructions to complete the gcloud configuration with your Google account. You can check the configuration withgcloud config list
and information about the CLI installation withgcloud info
. To deploy new versions of an app you have to add roles to the user to be able to copy files to a bucket and build and deploy the App Engine. - Add the following permission roles to your account at IAM & Admin:
App Engine Deployer
,Service Account User
. If needed, add an environmental variable to your system with the following:CLOUDSDK_PYTHON = route\to\your\python\executable
- Add your DBT files to display inside the
app_files
folder. - Modify the
deploy_app.sh
script to add your config parameters: Python version, bucket name (taken from App Engine/Settings/Default Cloud Storage Bucket) and project name. - If everything is correctly set you should now run the script with
bash deploy_app.sh
or with your desired shell executor, the files should be copied into the bucket and the App Engine should be deployed. You can now check you stats at the App Engine Dashboard and configure any other functionality if you need. - (Optional) Enable
Identity-Aware Proxy
API to grant access to the app to only a defined set of users. First you will be prompted to enableOAuth consent screen
. Set it depending if you want to expose the app to your organization members or to people outside of it. After that go back to the IAP manager, select the App Engine resource from the list and on the right panel add a Principal withIAP-secured Web App User
Role for every user.
-
Notifications
You must be signed in to change notification settings - Fork 0
marianore-beepboop/gcp-app-engine-deploy
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Deploying DBT Docs on GCP App Engine service
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published