From 1b63189413b48039d2460d9957e8113544ba33c0 Mon Sep 17 00:00:00 2001 From: Joey Zhao <5253430+joeyzhao2018@users.noreply.github.com> Date: Mon, 27 Feb 2023 16:00:33 -0500 Subject: [PATCH 1/2] use ddsaml2aws --- scripts/publish_prod.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/publish_prod.sh b/scripts/publish_prod.sh index fdc4c9d6..a1bd5596 100755 --- a/scripts/publish_prod.sh +++ b/scripts/publish_prod.sh @@ -32,7 +32,7 @@ else fi # Ensure AWS access before proceeding -saml2aws login -a govcloud-us1-fed-human-engineering +ddsaml2aws login -a govcloud-us1-fed-human-engineering AWS_PROFILE=govcloud-us1-fed-human-engineering aws sts get-caller-identity aws-vault exec prod-engineering -- aws sts get-caller-identity @@ -71,7 +71,7 @@ echo "Publishing layers to commercial AWS regions" VERSION=$LAYER_VERSION aws-vault exec prod-engineering -- ./scripts/publish_layers.sh echo "Publishing layers to GovCloud AWS regions" -saml2aws login -a govcloud-us1-fed-human-engineering +ddsaml2aws login -a govcloud-us1-fed-human-engineering VERSION=$LAYER_VERSION AWS_PROFILE=govcloud-us1-fed-human-engineering ./scripts/publish_layers.sh read -p "Ready to publish $NEW_VERSION to PyPI (y/n)?" CONT From 99a8f76ac06d6495e22ccae4195fe09622650114 Mon Sep 17 00:00:00 2001 From: Joey Zhao <5253430+joeyzhao2018@users.noreply.github.com> Date: Mon, 27 Feb 2023 16:57:55 -0500 Subject: [PATCH 2/2] update the size check limit --- scripts/check_layer_size.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check_layer_size.sh b/scripts/check_layer_size.sh index 8c4f05e6..448686c9 100755 --- a/scripts/check_layer_size.sh +++ b/scripts/check_layer_size.sh @@ -7,8 +7,8 @@ # Compares layer size to threshold, and fails if below that threshold -# 6 mb size limit -MAX_LAYER_COMPRESSED_SIZE_KB=$(expr 6 \* 1024) +# 7 mb size limit +MAX_LAYER_COMPRESSED_SIZE_KB=$(expr 7 \* 1024) MAX_LAYER_UNCOMPRESSED_SIZE_KB=$(expr 24 \* 1024) @@ -36,4 +36,4 @@ do echo "Unzipped size exceeded limit $MAX_LAYER_UNCOMPRESSED_SIZE_KB kb" exit 1 fi -done \ No newline at end of file +done