Terraform Recipes
View CommandsDefine and provision cloud infrastructure as code. Plan, apply, and manage resources across any cloud provider.
10 recipes
Automated Plan/Apply in CI/CD Pipelines
Set up automated Terraform plan and apply workflows in GitHub Actions or GitLab CI with proper safeguards.
Controlled Resource Teardown
Safely destroy Terraform-managed resources with targeted destroys, plan previews, and protection mechanisms.
Detect and Fix Infrastructure Drift
Identify when real infrastructure has drifted from Terraform state and resolve discrepancies systematically.
Import Existing Cloud Resources
Bring existing cloud resources under Terraform management without recreating or disrupting them.
Create Reusable Terraform Modules
Build, structure, and publish reusable Terraform modules with inputs, outputs, and proper documentation.
Safe Plan-Apply Workflow
Review Terraform plans carefully and use targeted applies to minimize blast radius when making infrastructure changes.
Configure S3/GCS Remote State Backend
Set up a remote state backend with S3 or GCS for team collaboration, state locking, and disaster recovery.
Handle Sensitive Variables Securely
Manage secrets, API keys, and passwords in Terraform without exposing them in state, logs, or version control.
Migrate State Between Backends
Move Terraform state from local to remote backend (S3, GCS, Azure) safely for team collaboration and disaster recovery.
Multi-Environment Workspace Management
Use Terraform workspaces to manage multiple environments like dev, staging, and production from a single configuration.