Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Removed hard coded region from create resources script #144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
18 changes: 17 additions & 1 deletion aws/createResources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,28 @@ echo -n "Enter the name for your resources (must be all lowercase with no spaces
read ROOT_NAME

BUCKET_NAME=cognitosample-$(echo "$ROOT_NAME" | tr '[:upper:]' '[:lower:]')

TABLE_NAME=LoginTrail$ROOT_NAME

ROLE_NAME_PREFIX=$ROOT_NAME
POOL_NAME=$ROOT_NAME
IDENTITY_POOL_NAME=$ROOT_NAME
REGION=us-east-2

if [ "$AWS_DEFAULT_REGION" = "" ]
then
REGION="$(aws configure get default.region)"
if [ "$REGION" = "" ]
then
echo -n "Enter the region for your resources and press [ENTER]: "
read REGION
else
echo "AWS default region used: $REGION"
fi
else
REGION="$AWS_DEFAULT_REGION"
echo "Environment variable AWS_DEFAULT_REGION used to set region to $REGION"
fi

EB_INSTANCE_TYPE=t2.small
EB_PLATFORM=node.js
CURR_DIR=$( cd $(dirname $0) ; pwd -P )
Expand Down