shop-infra/
Pick any file or folder on the left to see what it is, why it exists, when you add it and the mistakes people make with it. Switch the stage to watch the project grow.
# Pin the Terraform version for everyone (tfenv, mise and setup-terraform read it)
echo "1.16.5" > .terraform-version# Download providers and write the lock file
cd environments/dev && terraform init# Format and validate
terraform fmt -recursive && terraform validate# See what would change, then apply it
terraform plan -out=tfplan && terraform apply tfplan# Move local state into the S3 backend once backend.tf exists
terraform init -migrate-state# Lint and run module tests
tflint --init && tflint --recursive && terraform -chdir=modules/network test# Scan for insecure settings
trivy config . && checkov -d .# Install the Git hooks once per clone
pre-commit install# Same steps with OpenTofu instead (the commands mirror terraform)
tofu init && tofu plan