Skip to content

Commit

Permalink
feat: query cloudmap for stitcher ips
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikalonso committed Apr 16, 2021
1 parent bab307f commit 4211d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN apk add --no-cache \
sed \
socat \
bind-tools \
aws-cli \
;

ENV RSYSLOG=y
Expand Down
2 changes: 1 addition & 1 deletion render_cfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ else

# Resolve DNS
for _service in ${service//,/ }; do
dig $_service 2>/dev/null | grep ^$_service | awk '{print $5}'
aws servicediscovery list-instances --service-id $_service --query 'Instances[].Attributes.AWS_INSTANCE_IPV4' --output text --region eu-west-1
done | sort | paste -sd ',' > $tmpfile
if [ $(wc -c $tmpfile | gawk '{print $1}') -eq 0 ]; then
rm $tmpfile
Expand Down

0 comments on commit 4211d26

Please sign in to comment.