From a6c21e684df5907c4dfab3c0179667ff39ac50c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20C=C3=A9sar=20Dias?= Date: Thu, 20 Feb 2020 22:43:14 +0100 Subject: [PATCH] Adding public hostname from ec2 to configuration (#94) --- cloud_formation.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud_formation.yml b/cloud_formation.yml index 563b4cbe..d9de5558 100644 --- a/cloud_formation.yml +++ b/cloud_formation.yml @@ -163,12 +163,14 @@ Resources: systemctl start docker usermod -a -G docker ec2-user + export publichost=$(ec2-metadata --public-hostname | cut -d ' ' -f2) # Create configuration file mkdir -p /home/ec2-user/podsync/data tee /home/ec2-user/podsync/config.toml <