Bash script to deploy lambdas to all regions using Up - https://blog.ashfame.com/?p=1288
#!/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