Makefile Recipes for Real Projects/Terraform apply target

Apply the previously generated plan.

Section: Infrastructure and deployment recipes

Terraform apply target

makefile
makefile
terraform-apply:
	cd infra/$(ENV) && terraform apply tfplan
Explanation

Consider adding approval guards for production.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Infrastructure and deployment recipes
Terraform plan target
Run a named plan file for a chosen environment.
OpenIn sheetmakefilesame section
Docker build target
Build a container image with a version tag.
OpenIn sheetmakefilesame section
Docker push target
Push a previously built image.
OpenIn sheetmakefilesame section
Deploy static site to S3
Sync built files to a bucket and invalidate a CDN.
OpenIn sheetmakefilesame section
Help target
List available targets and descriptions.
OpenIn sheetmakefile
Node.js targets
Lint, test, and build JavaScript or TypeScript projects.
OpenIn sheetmakefile