Posts

Installing Terraform :

Windows Installation METHOD 1: Winget (BEST & SIMPLEST – Recommended) Step 1: Open PowerShell as Administrator Step 2: Install Terraform winget install HashiCorp.Terraform Step 3: Verify installation terraform version Advantages Automatically sets PATH Easy updates METHOD 2: Chocolatey (Popular in Enterprises) Step 1: Install Chocolatey (if not already installed) Set -ExecutionPolicy Bypass -Scope Process -Force; [ System .Net.ServicePointManager]::SecurityProtocol = [ System .Net.ServicePointManager]::SecurityProtocol -bor 3072 ; iex (( New - Object System .Net.WebClient).DownloadString( 'https://community.chocolatey.org/install.ps1' )) Step 2: Install Terraform choco install terraform - y Step 3: Verify terraform version METHOD 3: Manual Installation (Offline / Restricted Environments) Step 1: Download HashiCorp Terraform Releases → Windows AMD64 ZIP Step 2: Extract terraform.exe Step 3: Add to PATH Move terraform.exe to: C:\te...

1. Terraform workflow using terraform commands

Terraform is an open-source infrastructure as code (IaC) tool developed by HashiCorp. It allows you to define, provision, and manage infrastructure resources across a variety of cloud providers (like AWS, Azure, Google Cloud), as well as other services using a high-level configuration language called HashiCorp Configuration Language (HCL). Key Components of Terraform Configuration Files: These are the .tf files where you define the infrastructure you want to provision. This is where you describe the desired state of your resources. Providers: Providers are plugins that allow Terraform to interact with APIs of cloud providers, services, or platforms like AWS, Azure, Google Cloud, Kubernetes, etc. Resources: A resource is a component in your infrastructure (e.g., EC2 instances, S3 buckets, databases). Resources are declared in the configuration files. State: Terraform keeps track of your infrastructure in a state file (terraform.tfstate). This is how Terraform understands what’s been cre...

readme.md

  ### Markdown Syntax Reference - **Headers**: Use `#` for headers. The number of `#` symbols indicates the level of the header.   ```markdown   # H1   ## H2   ### H3   #### H4   ##### H5   ###### H6 Emphasis: Use * or _ for italic, ** or __ for bold. *Italic* or _Italic_ **Bold** or __Bold__ Blockquotes: Use > for blockquotes. > This is a blockquote. Lists: Use - or * for unordered lists, and numbers for ordered lists. - Item 1 - Item 2   - Subitem 1   - Subitem 2 1. Item 1 2. Item 2    1. Subitem 1    2. Subitem 2 Code: Use backticks for inline code and triple backticks for code blocks. `inline code` code block ```javascript function example() {   console.log("Hello, World!"); } Horizontal Rule: Use ---, ***, or ___. --- Links: Use [text](URL) for links. [Google](http://www.google.com) Images: Use ![alt text](URL) for images. ![Logo](http://www.example.com/logo.png) Tables: Use pipes | and hyphens - to cr...

Terraform Commands

terraform init  - initializes the current directory terraform init -- What is terraform init ? The terraform init command is used to initialize a Terraform working directory. This command performs several important tasks: Download Provider Plugins : Terraform will download and install the provider plugins specified in the configuration files. Providers are responsible for managing the lifecycle of a resource (e.g., AWS, Azure, Google Cloud). Initialize Backend : If a backend configuration is specified, terraform init will initialize the backend, which is used to store the state of your infrastructure. This is particularly important for collaboration and for maintaining state consistency. Install Modules : If your configuration includes modules, terraform init will download and install these modules from the specified sources (e.g., a local path, a Git repository, or the Terraform Registry). Validate Configuration : It checks for errors in the configuration files and ensures that...

Terraform Interview -ALL

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ What is HashiCorp Vault ? What are Meta Argument's ? Terraform Backend configuration ? What are provisioners ? what does .terraform contain ? what does .terraform.lock.hcl ? when does the terraform.tfstate gets created ? ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  What is HashiCorp Vault ? https://www.youtube.com/watch?v=nG8fCdWkLzc Vault is an Open source secret management tool that is used to automate access to Secrets | Data & Systems. Securely storing and controlling access for tokens , passwords , certificates & encryption keys. Vault can be used to protect sensitive data  in the CLI ( command line interface) / http API calls / even in UI (user Interface) it is commonly used with platforms such as AWS / GCP / OCI / Azure. And it can be used with many other types of services  General Use Case :  1. General Secret Storage 2. Employee Credential Storage 3....

Terraform Commands

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ It looks like you're asking about various Terraform commands that are commonly used for managing infrastructure using HashiCorp Terraform. Here's a list of some important Terraform commands and their descriptions: terraform init : Initializes a Terraform working directory by downloading the necessary provider plugins and setting up the environment for the configuration. terraform plan : Generates an execution plan that shows the changes Terraform will make to the infrastructure without actually making any changes. This is useful for reviewing the planned modifications before applying them. terraform apply : Applies the changes specified in your Terraform configuration to the actual infrastructure. This command can create, update, or delete resources as needed. terraform destroy : Destroys the infrastructure managed by Terr...

EKS -- Terraform EKA - Interview Questions

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++