Terraform is an open-source infrastructure-as-code software tool created by HashiCorp. With Terraform we can automate Infrastructure to provision and manage resources in any cloud or data center.
https://developer.hashicorp.com/terraform?product_intent=terraform
For this project, an IAM User was created with Administrator access
On Visual Studio code there was the need to install the AWS Toolkits and Terraform extension, and thereafter login with the already generated Access key ID & Secret access key on the Credentials profile command palette.
Which generated various AWS resource Templates in our selected Region.
A provider is basically used by Terraform to interface with the Application Programming Interface (API) of whatsoever infrastructure you are trying to build which is available to the cloud service provider. ## https://registry.terraform.io/providers/hashicorp/aws/latest/docs
Running the terraform init within the working directory, terraform checks the provider's file installs required hashicorp files and then creates Two(2) extra files .terraform.lock.hcl ensures that the selected version is frozen, Which helps to avoid issues in cases of upgrade and a .exe file.
After creating a main.tf file, with the specified resources, in this instance a VPC, running terraform plan creates a state file.
This creates the specified resource.
VPC Resource created on AWS GUI