Server side GTM using App Engine

240 views
Skip to first unread message

David Loake

unread,
Apr 8, 2021, 5:33:31 PM4/8/21
to Google App Engine
Hi - I followed this doc in order to setup GTM server side In App Engine:
https://developers.google.com/tag-manager/serverside/script-user-guide

Using this command as per the instructions runs a script to auto configure GTM:
However, that script sets up a Flexible instance of App Engine - I only need a Standard instance. I would edit the yaml file but that script seems to delete it (GCP support confirmed this earlier).

I've setup a new App Engine instance - F1 - my question is how do I configure it with the configuration reference provided in GTM. I think the relevant bit of the script above is this:

prompt_container_config() { while [[ -z "${container_config}" || "${container_config}" == '?' ]]; do suggested="$(generate_suggested "${cur_container_config}" "Required")" printf "Container Config (${suggested}): " read container_config if [[ -z "${container_config}" ]]; then container_config="${cur_container_config}" fi if [[ "${container_config}" == '?' ]]; then echo "${CONTAINER_CONFIG_HELP}" elif [[ -z "${container_config}" ]]; then echo " Container config cannot be empty."

So basically, what command can I run in gcloud shell in order to set the container config reference provided in GTM.

Or - can I alter that script 'simply' to have it configure a Standard instance rather than a Flexible one.

Any advice gratefully received.

Cheers

Shawn Wu

unread,
Apr 9, 2021, 2:28:04 PM4/9/21
to Google App Engine

the App Engine standard is only used for testing.. Once being deployed to the production, 3  instances with 1 vCPU, 0.5 GB memory, 10 GB disk and App Engine Flex insensate are required , you can only increase or reduce the amount of the instance rather than modify the container.

David Loake

unread,
Apr 12, 2021, 5:54:34 AM4/12/21
to Google App Engine
Understood, thanks
Reply all
Reply to author
Forward
0 new messages