Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 483 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 483 Bytes

RUN

$ terraform plan
$ terraform apply
$ chmod 400 private_key.pem
$ ssh -i private_key.pem ec2-user@`terraform output ec2_complete_public_dns | sed -r 's/^"|"$//g'`

Note :- After ssh into public instance need to copy the file content of private_key.pem to ssh into private instance of vpc-a

$ ssh -i private_key.pem ec2-user@<vpc-a_private-instance-ip>
$ ping <vpc-b_priavte-instance-ip>

Destroy

$ terraform destroy -auto-approve