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
10 changes: 0 additions & 10 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@
if (( $# != 3 )); then
echo "Usage: source env.sh aws_profile_name deploy_name maturity"
else
if (( ${#2} > 10 )); then
echo "Error: deploy_name must be 10 characters or fewer."
return 1 2>/dev/null || exit 1
fi

if [[ ! "$2" =~ ^[a-z0-9-]+$ ]]; then
echo "Error: deploy_name may contain only lowercase letters, numbers, and hyphens."
return 1 2>/dev/null || exit 1
fi

export AWS_PROFILE=$1

AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id --profile "$AWS_PROFILE")
Expand Down
Loading