Practical Implementations of terraform for my Learning purpose.
Terraform is used to create, manage, and update infrastructure resources such as physical machines, VMs, network switches, containers, and more. Almost any infrastructure type can be represented as a resource in Terraform.
Terraform is an open-source infrastructure as code, software tool created by HashiCorp. It enables users to define and provision data center infrastructure using a declarative configuration language known as HashiCorp Configuration Language (HCL), or optionally JSON.
For more information about Terraforms refer here - https://www.terraform.io/
A provider is responsible for understanding API interactions and exposing resources. Providers generally are an IaaS (e.g. Alibaba Cloud, AWS, GCP, Microsoft Azure, OpenStack), PaaS (e.g. Heroku), or SaaS services (e.g. Terraform Cloud, DNSimple, Cloudflare).
For more information about Terraform Providers refer here - https://www.terraform.io/docs/providers/index.html
To implement the provider of terraform. It will download the associated plugins for initialzing the terraform provider.
The terraform plan command is used to create an execution plan. Terraform performs a refresh, unless explicitly disabled, and then determines what actions are necessary to achieve the desired state specified in the configuration files.
It will give the summary of additions, modifications and deletions with the template created.
To create all the resoruce in your AWS as per you plan. Confirm the creation of resources with "yes".
To destroy all the created resources.
To unlock the locked terraform forcefully. If the same terraform is running in some other terminal and forgot to close that. This command will help to forcefully close it.