Challenge 5: Automation

Previous Challenge

Introduction

We can run the Terraform commands locally but ideally they should be executed in a headless fashion so the configuration is reproducable. This task will introduce you to Cloud Build to automate the process of Terraform provisioning.

Description

Create a new Cloud Build push trigger using the cloudbuild.yaml in the provided sample project. Make sure that the variables for the build are configured properly. Note that you might need to edit this file to get a successful build.

Warning
For the sake of simplicity stick to the default Cloud Build Service Account to run the build, otherwise you’ll have to do additional modifications to the build file to configure logging.

Success Criteria

  1. There’s a new Cloud Build push trigger using the provided cloudbuild.yaml
  2. The trigger is connected to the Cloud Source Repository created in the first challenge
  3. The trigger uses the provided (fully configured) build configuration from the repository
  4. And there’s at least one successful build

Tips

  • Did you consider the permissions?

Previous Challenge