Skip to content

Commit

Permalink
Remove unneeded code & comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bryophyta committed Sep 12, 2024
1 parent 0b9fe82 commit 62d56d9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scripts/start
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ ROOT_DIR=${DIR}/..
# copied over from the Grid. Not 100% sure of the rationale, but perhaps: https://stackoverflow.com/questions/56520354/getting-an-amazonkinesisexception-status-code-502-when-using-localstack-from-ja
export AWS_CBOR_DISABLE=true

LOCAL_AUTH=false
for arg in "$@"; do
if [ "$arg" == "--debug" ]; then
IS_DEBUG=true
Expand All @@ -35,10 +34,6 @@ isInstalled() {
}

hasCredentials() {
if [[ $LOCAL_AUTH == true ]]; then
return
fi

STATUS=$(aws sts get-caller-identity --profile ${AWS_PROFILE} 2>&1 || true)
if [[ ${STATUS} =~ (ExpiredToken) ]]; then
echo -e "${red}Credentials for the ${AWS_PROFILE} profile are expired. Please fetch new credentials and run this again.${plain}"
Expand Down Expand Up @@ -79,8 +74,6 @@ tunnelToAwsDb() {
if [[ -n $EXISTING_TUNNELS ]]; then
echo "RE-USING EXISTING TUNNEL TO CODE POSTGRES (on port ${POSTGRES_PORT})"
else
# todo: Grid script uses the following options, do we need any of these?
# TUNNEL_OPTS="-o ExitOnForwardFailure=yes -o ServerAliveInterval=10 -o ServerAliveCountMax=2"
ssm ssh -t ${APP_NAME},CODE -p ${AWS_PROFILE} -x --newest --rds-tunnel 5432:${APP_NAME},CODE
echo "TUNNEL ESTABLISHED TO CODE POSTGRES (on port ${POSTGRES_PORT})"
fi
Expand Down

0 comments on commit 62d56d9

Please sign in to comment.