Skip to content

Commit 20c763e

Browse files
committed
fix deploy script
1 parent 735da1d commit 20c763e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

scripts/deploy.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,10 @@ set -u
55
ENV=$1
66

77
if [ "${ENV}" = "prod" ]; then
8-
# reset current role if exists
9-
test ! -v AWS_SESSION_TOKEN && direnv reload
10-
# switch to production role
118
source scripts/switch-production-role.sh
129
fi
1310

1411
# account number to mask
1512
account_number=$(aws sts get-caller-identity --output text --query 'Account')
1613

1714
sls deploy -v --stage ${ENV} | sed -e "s/${account_number}/SECRET/g"
18-
19-
if [ "${ENV}" = "prod" ]; then
20-
# reset current role if exists
21-
test ! -v AWS_SESSION_TOKEN && direnv reload
22-
fi

0 commit comments

Comments
 (0)