Skip to content

Commit 97a348e

Browse files
authored
fix cases release script (#268)
1 parent d057738 commit 97a348e

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

case-summarization/utils/release.sh

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,9 @@
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
75
export 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

119
echo "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/

0 commit comments

Comments
 (0)