Skip to content

Instantly share code, notes, and snippets.

@leventyalcin
Created August 21, 2017 13:33
Show Gist options
  • Save leventyalcin/3209a33db82565ec3936acb95d5bbf13 to your computer and use it in GitHub Desktop.
Save leventyalcin/3209a33db82565ec3936acb95d5bbf13 to your computer and use it in GitHub Desktop.
# Slack command generator for AWS status feeds of the default region
for i in $(curl -q -o- http://status.aws.amazon.com | grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | grep $AWS_DEFAULT_REGION | awk -F'"' '{print $2}'); \
do \
echo "/feed subscribe http://status.aws.amazon.com$i"; \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment