Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 429 Bytes

File metadata and controls

18 lines (15 loc) · 429 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 get endpoint_dns_names using terraform output consumer_endpoint_dns_names

$ curl <one_of_the_consumer_endpoint_dns_names>

Destroy

$ terraform destroy -auto-approve