Tag: Best Practices
Browse all articles, tutorials, and guides about Best Practices
Posts
The 10 Most Common DevOps Mistakes (And How to Avoid Them in 2025)
Explore the top 10 DevOps mistakes made in 2025 and learn how to avoid them to ensure a smoother DevOps journey.
Understanding the Difference Between CMD and ENTRYPOINT in Dockerfiles
Learn how CMD and ENTRYPOINT instructions work, how they interact with each other, and when to use each one for more flexible Docker containers.
Best practices when using Terraform?
Discover essential best practices for using Terraform to manage your infrastructure effectively and securely.
How to Share Providers and Variables Across Terraform Modules
Learn the right way to configure providers and pass variables when working with Terraform modules, avoiding common pitfalls with provider inheritance and variable scoping.
How to Save Terraform Plan and Apply Output to a File
Learn how to save Terraform plan output for review, share readable apply logs, and use the -out flag for safe two-step deployments.
How do I Add an Empty Directory to a Git Repository?
Git does not track empty directories by design. Learn practical workarounds to include empty folders in your repository using .gitkeep files and understand why this limitation exists.
Should .terraform.lock.hcl Be in .gitignore? (The Answer Might Surprise You)
The .terraform.lock.hcl file causes confusion for many Terraform users. Learn why you should commit it to version control and how to handle it properly.
How to Use Terraform Module Output as Input for Another Module
Learn how to chain Terraform modules together by passing outputs from one module as inputs to another, creating organized and reusable infrastructure configurations.
How to Organize a Terraform Repository with Multiple Subfolders
Learn how to structure a Terraform repository with multiple environments, modules, and configurations in a way that scales with your infrastructure needs.
How to Modify Existing, Unpushed Commit Messages
Learn how to change commit messages for unpushed commits using git commit --amend and interactive rebase. Learn message editing techniques for clean Git history.
How to Get the Current Working Directory in Terraform
Learn how to reference file paths in Terraform using path.module, path.root, and path.cwd - and understand which one to use in different scenarios.
What Is the Preferred Bash Shebang?
Learn which shebang line to use for Bash scripts, the differences between common options, and how to write portable scripts that work across different Unix-like systems.