Skip to content

Deploy Infrastructure Changes

You will need

Environments

There are different environments that are controlled by Tofu. These include:

Environment Description
a0 Auth0 API, CLI application, roles, and permissions
gh The GitHub repository containing the project
prod All resources deployed in Google Cloud, publicly accessible

Deploying Changes

The changes need to be deployed in two steps:

  1. Plan the changes:

    task tofu/plan ENV=<environment>
    
  2. CAREFULLY INSPECT the output, and ensure you understand it all

  3. Apply the changes

    task tofu/apply ENV=<environment>
    

If an apply only partly succeeds, create a new plan before retrying. The previous saved plan no longer describes the current infrastructure state.