forked from awslabs/amazon-redshift-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snippets.txt
10 lines (7 loc) · 1.28 KB
/
snippets.txt
1
2
3
4
5
6
7
8
9
10
// publish deploy.yaml to regional buckets
for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3 cp deploy.yaml s3://awslabs-code-$r/LambdaRedshiftRunner/deploy.yaml --acl public-read --region $r; done
for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3 cp deploy-function-and-schedule.yaml s3://awslabs-code-$r/LambdaRedshiftRunner/deploy-function-and-schedule.yaml --acl public-read --region $r; done
for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3 cp deploy-schedule.yaml s3://awslabs-code-$r/LambdaRedshiftRunner/deploy-schedule.yaml --acl public-read --region $r; done
// generate README table for regions
for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do echo "| $r | s3://awslabs-code-$r/LambdaRedshiftRunner/lambda-redshift-util-runner-1.2.zip |"; done
for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do echo "|$r | [<img src=\"https://s3.amazonaws.com/cloudformation-examples/cloudformation-launch-stack.png\">](https://console.aws.amazon.com/cloudformation/home?region=$r#/stacks/new?stackName=RedshiftAutomation&templateURL=https://s3-$r.amazonaws.com/awslabs-code-$r/LambdaRedshiftRunner/deploy.yaml) |"; done