-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdeploy-local.sh
executable file
·15 lines (8 loc) · 1.04 KB
/
deploy-local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
ver=1.0
#for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3api create-bucket --bucket paramsey-cfn-$r --region $r --create-bucket-configuration LocationConstraint=$r; done
for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3 cp dist/aurora-postgres-advanced-monitoring-$ver.zip s3://paramsey-cfn-$r/AuroraPostgresAdvancedMonitoring/aurora-postgres-advanced-monitoring-$ver.zip --acl public-read --region $r; done
for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3 cp deploy-vpc.yaml s3://paramsey-cfn-$r/AuroraPostgresAdvancedMonitoring/deploy-vpc.yaml --acl public-read --region $r; done
for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3 cp deploy-non-vpc.yaml s3://paramsey-cfn-$r/AuroraPostgresAdvancedMonitoring/deploy-non-vpc.yaml --acl public-read --region $r; done