From 1283b7a805568f71b9683a057a471e02581dd5af Mon Sep 17 00:00:00 2001 From: allanrolli Date: Thu, 21 Aug 2025 11:44:38 -0300 Subject: [PATCH] docs: answered terraform questions --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a062f27..8e3dc4e 100644 --- a/README.md +++ b/README.md @@ -1767,35 +1767,35 @@ Advanced:
What is IaC? What is Terraform? -Answer goes here +Terraform state is a file that keeps track of the resources managed by Terraform. It maps real-world resources to your configuration, allowing Terraform to manage updates and changes effectively.
What is Terraform state? -Answer goes here +It’s how Terraform tracks and maps real resources to your code, stored in the state file, enabling accurate plans and applies.
What are most common Terraform commands? -Answer goes here +The most common Terraform commands include `terraform init` (initialize a working directory), `terraform plan` (create an execution plan), `terraform apply` (apply changes), and `terraform destroy` (destroy managed infrastructure).
What is Terraform backend? -Answer goes here +A Terraform backend determines how state is loaded and how operations are executed. It can be local (default) or remote, allowing for collaboration and state management in a shared environment.
What are modules in Terraform? -Answer goes here +Modules in Terraform are containers for multiple resources that are used together. They allow for code reusability and organization, enabling you to create complex infrastructure setups more easily.
@@ -1803,14 +1803,15 @@ Answer goes here
What is Terragrunt? -Answer goes here +Terragrunt extends Terraform with better organization, reusability, and automation for large, complex infrastructures.
Explain the workflow of the core Terraform? -Answer goes here +load → refresh → plan → apply → update state.(short version) +Terraform Core loads the configuration and the current state, refreshes resource information from providers, builds a dependency graph, and then generates an execution plan. If approved, it applies the plan by calling the provider plugins to create, update, or destroy resources in the right order, and finally updates the state file.(long version)
@@ -1818,35 +1819,35 @@ Answer goes here
Difference between Terraform, AWS CloudFormation and Azure ARM? -Answer goes here +Terraform is provider-agnostic and reusable across clouds, while CloudFormation and ARM are vendor-specific but deeply integrated into their ecosystems.
What is the difference between Terraform and Ansible? -Answer goes here +Terraform is primarily used for provisioning and managing infrastructure, while Ansible is a configuration management tool that automates software provisioning, configuration management, and application deployment.
What are provisioners in Terraform? -Answer goes here +Provisioners in Terraform are used to execute scripts or commands on a local or remote machine as part of the resource creation process. They help in configuring resources after they are created.
How can two people using the Terraform cloud can create two different sets of infrastructure using the same working directory? -Answer goes here +By using Terraform Workspaces. Each workspace has its own isolated state file, so multiple people can apply the same configuration to create separate environments without clashing.
What is a null resource in Terraform? -Answer goes here +A null resource in Terraform is a resource that does not create any real infrastructure but can be used to execute provisioners or manage dependencies between resources.