TerraForm code for deploying BricksAndBlocks infrastructure.
- Make a copy of
env.dist
called.env
- Fill in appropriate values for
.env
- Make a copy of
main.auto.tfvars.example
calledmain.auto.tfvars
- Fill in appropriate values for
main.auto.tfvars
- Log into Terraform Cloud with
terraform login
- Add submodule for taskfiles and run setup task
task setup
- reinitialize Terraform:
rm -rf .terraform && terraform init
- redeploy a resource:
terraform destroy -target=[resource provider].[resource] --auto-approve && terraform apply --auto-approve