Working with Terraform Provision
Provisioners can be used to model specific actions on the local machine or on a remote machine in order to prepare servers or other infrastructure objects for service.
- In EC2 terraform script, lets try to provisioner to out terraform which echo’s the Public IP of EC2 to local machine in a file, please refer this link
- Now run
terraform apply