The work here assumes you have an AWS account and have the AWS CLI installed and configured to this account.
The main.tf contains the configuration that Terraform will use to create the resources in the cloud.
- Initialize the Terraform configuration by running the following command
terraform init
- Plan the Terraform configuration by running the following command
terraform plan
- Apply the Terraform configuration by running the following command
terraform apply
- When you are done, you can destroy the resources by running the following command
terraform destroy