Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 725 Bytes

File metadata and controls

37 lines (25 loc) · 725 Bytes

Terraform

You can setup each lab using Terraform. It's assumed that you setup each lab in progression (Lab 1 followed by Lab 2, etc.).

Run the following commands inside each lab folder.

  1. If there's a build.sh file in the folder, run that first to build the required containers:

    ./build.sh
  2. Initialize terraform:

    terraform init
  3. See the planned changes:

    terraform plan -var="project_id=YOUR-PROJECT-ID"
  4. Create resources:

    terraform apply -var="project_id=YOUR-PROJECT-ID"
  5. (Optional) If you want to destroy the deleted resources later:

    terraform destry -var="project_id=YOUR-PROJECT-ID"