File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ export STACK_SET_NAME=LayerBuckets
77export CENTRAL_BUCKET=aws-managed-cost-intelligence-dashboards
88
99code_path=$( git rev-parse --show-toplevel) /data-collection/deploy
10+ version=$( jq -r ' .version' data-collection/utils/version.json)
1011
1112echo " sync to central bucket"
1213aws s3 sync $code_path / s3://$CENTRAL_BUCKET /cfn/data-collection/
14+ aws s3 sync $code_path / s3://$CENTRAL_BUCKET /cfn/data-collection/$version /
1315
14-
15-
16+ echo " sync to regional bucket with version prefix"
1617aws cloudformation list-stack-instances \
1718 --stack-set-name $STACK_SET_NAME \
1819 --query ' Summaries[].[StackId,Region]' \
@@ -24,6 +25,7 @@ aws cloudformation list-stack-instances \
2425 --region $region --output text)
2526
2627 aws s3 sync $code_path / s3://$bucket /cfn/data-collection/ --delete
28+ aws s3 sync $code_path / s3://$bucket /cfn/data-collection/$version / --delete
2729 done
2830
29- echo ' Done'
31+ echo ' Done'
You can’t perform that action at this time.
0 commit comments