Task:
Run web applications on two EC2 instances
Use a LB to distribute the traffic
route the traffic to LB via Route53
Steps
1, Create a bucket in aws s3. - in order to create this open a aws free account.
2, Create a main.tf configuration file with the required provider, resourse for example ec2
3, Terraform init - to Initialize a working directory
4, terraform fmt - #format code per HCL canonical standard
5, terraform validate - #validate code for syntax
6, terraform plan - Creates an execution plan (dry run)
7, terraform apply - Executes changes to the actual environment
8, terraform destroy - destroy the resourse after practising inorder to avoid billing