Skip to content

Instantly share code, notes, and snippets.

@ChrisWelsh-mis
Last active January 4, 2018 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisWelsh-mis/f7decc862ace2fc01910fde882ab6901 to your computer and use it in GitHub Desktop.
Save ChrisWelsh-mis/f7decc862ace2fc01910fde882ab6901 to your computer and use it in GitHub Desktop.
BASH - Check aws configure has been set
#!/bin/bash
# Check AWS credentials exist
if [[ $(aws configure list | grep "*") && $? -eq 0 ]]; then
:
else
echo "Please configure AWS credentials to continue..."
aws configure
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment