Closed oveits closed 6 years ago
Today, the manual step can be simplified by issuing following command
$ cat $DIR/terraform.tfstate | grep ec2- | awk -F '"' '{print $4}'
ec2-52-57-51-241.eu-central-1.compute.amazonaws.com
ec2-52-57-112-189.eu-central-1.compute.amazonaws.com
and copy&paste the two DNS names to the inventory file.
Implemented long time ago...
In the moment, the public DNS names of the newly created AWS instances need to be changed manually.
In future, this should be detected automatically, e.g. by reading them from terraform.tfstate file.