Last active
February 25, 2018 18:27
-
-
Save ashfame/4a984205fac0e5fb87c4907284d42035 to your computer and use it in GitHub Desktop.
Bash script to deploy lambdas to all regions using Up - https://blog.ashfame.com/?p=1288
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
declare -a regions=( | |
us-east-2 #US East (Ohio) | |
us-east-1 #US East (N. Virginia) | |
us-west-1 #US West (N. California) | |
us-west-2 #US West (Oregon) | |
ap-northeast-1 #Asia Pacific (Tokyo) | |
ap-northeast-2 #Asia Pacific (Seoul) | |
ap-south-1 #Asia Pacific (Mumbai) | |
ap-southeast-1 #Asia Pacific (Singapore) | |
ap-southeast-2 #Asia Pacific (Sydney) | |
ca-central-1 #Canada (Central) | |
cn-north-1 #China (Beijing) | |
eu-central-1 #EU (Frankfurt) | |
eu-west-1 #EU (Ireland) | |
eu-west-2 #EU (London) | |
eu-west-3 #EU (Paris) | |
sa-east-1 #South America (Sao Paulo) | |
) | |
for region in "${regions[@]}" | |
do | |
echo "Deploying to $region" | |
AWS_REGION=$region up | |
echo "Deployed: " $(AWS_REGION=$region up url) | |
echo # echo new line | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment