Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions scripts/publish_govcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Download button on the `layer bundle` job. This will be a zip file containing
# all of the required layers. Run this script as follows:
#
# ENVIRONMENT=[us1-staging-fed or us1-fed] [LAYER_NAME_SUFFIX=optional-layer-suffix] [REGIONS=us-gov-west-1] ./scripts/publish_govcloud.sh <layer-bundle.zip>
# CI_COMMIT_TAG=<vX.Y.Z> ENVIRONMENT=[us1-staging-fed|us1-fed|us2-fed] [LAYER_NAME_SUFFIX=optional-layer-suffix] [REGIONS=us-gov-west-1] ./scripts/publish_govcloud.sh <layer-bundle.zip>
#
# protip: you can drag the zip file from finder into your terminal to insert
# its path.
Expand Down Expand Up @@ -49,9 +49,17 @@ elif [ $ENVIRONMENT = "us1-fed" ]; then
echo "[ERROR]: Unexpected package name: $PACKAGE_NAME"
exit 1
fi
elif [ $ENVIRONMENT = "us2-fed" ]; then
AWS_VAULT_ROLE=sso-govcloud-fed-us2-lambda-layer-operator

export STAGE=gov-prod

if [[ ! "$PACKAGE_NAME" =~ ^datadog_lambda_py-signed-bundle-[0-9]+$ ]]; then
echo "[ERROR]: Unexpected package name: $PACKAGE_NAME"
exit 1
fi
else
printf "[ERROR]: ENVIRONMENT not supported, must be us1-staging-fed or us1-fed.\n"
printf "[ERROR]: ENVIRONMENT not supported, must be us1-staging-fed, us1-fed, or us2-fed.\n"
exit 1
fi

Expand Down
Loading