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.
-
If there's a
build.sh
file in the folder, run that first to build the required containers:./build.sh
-
Initialize terraform:
terraform init
-
See the planned changes:
terraform plan -var="project_id=YOUR-PROJECT-ID"
-
Create resources:
terraform apply -var="project_id=YOUR-PROJECT-ID"
-
(Optional) If you want to destroy the deleted resources later:
terraform destry -var="project_id=YOUR-PROJECT-ID"