Skip to content

Commit

Permalink
yaml file copies added into s3 prefix with CID_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
vtaws committed Dec 19, 2024
1 parent 4f338bf commit 49083f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/publish_lambda_layer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

# First build layer
layer=$(./assets/build_lambda_layer.sh)
# Source the version from the previous script execution
source ./assets/build_lambda_layer.sh


# Then publish on s3
export AWS_REGION=us-east-1
Expand Down Expand Up @@ -35,6 +38,8 @@ rm -vf ./$layer
if aws s3 ls "s3://aws-managed-cost-intelligence-dashboards" >/dev/null 2>&1; then
echo "Updating cid-cfn.yml"
aws s3 sync ./cfn-templates/ s3://aws-managed-cost-intelligence-dashboards/cfn/
# Publish additional copy into respective version folder
aws s3 sync ./cfn-templates/ "s3://aws-managed-cost-intelligence-dashboards/cfn/${CID_VERSION}/"

echo "Syncing dashboards"
aws s3 sync ./dashboards s3://aws-managed-cost-intelligence-dashboards/hub/
Expand Down

0 comments on commit 49083f2

Please sign in to comment.