This Terraform script deploys the serverside Google Tag Manager on Cloud Run within the Google Cloud Platform with various extra features like automated updates and an alerting policy.
- Uptime Check with Notifications - You will be notified if there is an outage of your SGTM services
- Docker Image Auto Updates - The SGTM Docker image will be updated automatically once per week (default)
- Log Exculusion - Logs with the serverity default or notice will be excluded to reduce costs
- Clone this repository and make sure you have installed Terraform.
- Authenticate with Application Default Credentials - Setup Application Default Credentials.
- Change the variables inside terraform.tfvars.example to suit your needs and rename the file to terraform.tfvars. Make sure you have created the SGTM Container already to retrieve the container config.
- Run
terraform init
to initialize the repository andterraform apply
the infrastructure will be built on GCP
Check this repo for detailed documentation about the sGTM updater Cloud Function repository.