Tag: Best Practices

Browse all articles, tutorials, and guides about Best Practices

Posts

DevOps
2025-07-12|5 min read

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.

Docker
2025-05-02|8 min read

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.

Terraform
2025-03-21|6 min read

Best practices when using Terraform?

Discover essential best practices for using Terraform to manage your infrastructure effectively and securely.

Terraform
2025-03-20|8 min read

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.

Terraform
2025-03-12|7 min read

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.

Git
2025-03-10|5 min read

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.

Terraform
2025-01-23|6 min read

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.

Terraform
2024-12-22|8 min read

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.

Terraform
2024-12-05|8 min read

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.

Git
2024-12-04|6 min read

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.

Terraform
2024-11-20|6 min read

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.

Bash
2024-06-25|6 min read

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.