Skip to content

Commit 203baf7

Browse files
committed
Check credentials in release script using aws-cli
1 parent f27b2c0 commit 203baf7

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

aws/logs_monitoring/release.sh

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,8 @@ else
3333
PROD_RELEASE=false
3434
fi
3535

36-
if [ -z "$AWS_ACCESS_KEY_ID" ]; then
37-
echo 'AWS_ACCESS_KEY_ID not set. Are you using aws-vault?'
38-
exit 1
39-
fi
40-
41-
if [ -z "$AWS_SECRET_ACCESS_KEY" ]; then
42-
echo 'AWS_SECRET_ACCESS_KEY not set. Are you using aws-vault?'
43-
exit 1
44-
fi
45-
46-
if [ -z "$AWS_SESSION_TOKEN" ]; then
47-
echo 'AWS_SESSION_TOKEN not set. Are you using aws-vault?'
48-
exit 1
49-
fi
36+
# Validate identity
37+
aws sts get-caller-identity
5038

5139
# Validate the template
5240
echo "Validating template.yaml"

0 commit comments

Comments
 (0)