Skip to content

Latest commit

 

History

History

infrastructure

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Provision app deployment environment

Structure

The core project root owns the environment projects to deploy the core logic to:

root
|- staging
`- production

Prerequisites

  1. Service Account with the JSON key
  2. Export path to the key:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/json/key

Commands

  1. Navigate to the directory with the terraform instructions
cd gcp
  1. Switch environments: staging/production:
terraform workspace select staging
terraform workspace select production
  1. Execute the tf commands:
terraform init
terraform plan
terraform apply -auto-approve