Skip to content

Instantly share code, notes, and snippets.

@eekfonky
Last active December 23, 2017 06:05
Show Gist options
  • Select an option

  • Save eekfonky/b22908beb45cb128e917c4e77487dcc6 to your computer and use it in GitHub Desktop.

Select an option

Save eekfonky/b22908beb45cb128e917c4e77487dcc6 to your computer and use it in GitHub Desktop.
Check if AWS configure is set
#!/bin/bash
# Check AWS credentials exist
if [[ $(aws configure list | grep "*") && $? -eq 0 ]]; then
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