File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change 22# shellcheck disable=SC2016,SC2086,SC2162
33# This script can be used for release
44
5- export AWS_REGION=us-east-1
6- export STACK_SET_NAME=LayerBuckets
75export CENTRAL_BUCKET=aws-managed-cost-intelligence-dashboards
86
9- code_path=$( git rev-parse --show-toplevel) /data-collection /deploy
7+ code_path=$( git rev-parse --show-toplevel) /case-summarization /deploy
108
119echo " sync to central bucket"
12- aws s3 sync $code_path / s3://$CENTRAL_BUCKET /cfn/data-collection/
13-
14-
15-
16- aws cloudformation list-stack-instances \
17- --stack-set-name $STACK_SET_NAME \
18- --query ' Summaries[].[StackId,Region]' \
19- --output text |
20- while read stack_id region; do
21- echo " sync to $region "
22- bucket=$( aws cloudformation list-stack-resources --stack-name $stack_id \
23- --query ' StackResourceSummaries[?LogicalResourceId == `LayerBucket`].PhysicalResourceId' \
24- --region $region --output text)
25-
26- aws s3 sync $code_path / s3://$bucket /cfn/data-collection/ --delete
27- done
28-
29- echo ' Done'
10+ aws s3 sync $code_path / s3://$CENTRAL_BUCKET /cfn/case-summarization/
You can’t perform that action at this time.
0 commit comments