Skip to content

Latest commit

 

History

History

1.aws-vpc-and-ec2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

AWS VPC and EC2 Instance Example

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.

  1. Initialize the Terraform configuration by running the following command
terraform init
  1. Plan the Terraform configuration by running the following command
terraform plan
  1. Apply the Terraform configuration by running the following command
terraform apply
  1. When you are done, you can destroy the resources by running the following command
terraform destroy