https://github.com/sagarkpanda/terraform101
Cloud (aws) Infra automation with Terraform/OpenTofu
https://github.com/sagarkpanda/terraform101
devops opentofu terraform
Last synced: 2 months ago
JSON representation
Cloud (aws) Infra automation with Terraform/OpenTofu
- Host: GitHub
- URL: https://github.com/sagarkpanda/terraform101
- Owner: sagarkpanda
- Created: 2023-07-02T07:41:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-22T07:49:29.000Z (over 1 year ago)
- Last Synced: 2024-12-22T08:32:11.397Z (over 1 year ago)
- Topics: devops, opentofu, terraform
- Language: HCL
- Homepage:
- Size: 884 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Infra automation on AWS with Terraform
Read the detailed article on:
## What is Terraform:
Terraform is an open-source infrastructure as code (IAC) tool that helps us to safely and predictably provision and manage infrastructure in any cloud and on-prem resources in human-readable configuration files that you can version, reuse, and share.
## How if Works:
We write a set of instruction using a declarative DSL called HashiCorp Configuration Language (HCL) and TF executes the instructions to get the expected result for us.
The core TF workflow consists of three stages:
Write:
You define resources, which may be across multiple cloud providers and services. For example, you might create a configuration to deploy an application on virtual machines in a Virtual Private Cloud (VPC) network with security groups and a load balancer.
Plan:
Terraform creates an execution plan describing the infrastructure it will create, update, or destroy based on the existing infrastructure and your configuration.
Apply:
On approval, Terraform performs the proposed operations in the correct order, respecting any resource dependencies. For example, if you update the properties of a VPC and change the number of virtual machines in that VPC, Terraform will recreate the VPC before scaling the virtual machines.
Destroy:
Deletes/Removes the resources.