Skip to content

Commit

Permalink
Modifying startup.sh to get region env var from task
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Keller committed Sep 21, 2020
1 parent 6eb5ff7 commit a9a10a9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ fi

# Still no luck? Perhaps we're running fargate!
if [[ -z ${zone} ]]; then
export AWS_DEFAULT_REGION=$REGION
ip_addr=$(curl -m2 -s ${ECS_CONTAINER_METADATA_URI} | jq -r '.Networks[].IPv4Addresses[]')
declare -a subnets=( $(aws ec2 describe-subnets | jq -r .Subnets[].CidrBlock| sed ':a;N;$!ba;s/\n/ /g') )
for sub in "${subnets[@]}"; do
Expand Down

0 comments on commit a9a10a9

Please sign in to comment.