Skip to content

Instantly share code, notes, and snippets.

@leoxlin
Created March 12, 2021 13:44
Show Gist options
  • Save leoxlin/7fedd675a3fa539b9e6196f8919304b5 to your computer and use it in GitHub Desktop.
Save leoxlin/7fedd675a3fa539b9e6196f8919304b5 to your computer and use it in GitHub Desktop.
# eg. `AWS_PROFILE=production wait_stack create api-servers`
wait_stack () {
STEP_NAME=$1
STACK_NAME=$2
aws cloudformation wait stack-${STEP_NAME}-complete --stack-name ${STACK_NAME} && \
osascript -e "display notification \"stack-${STEP_NAME}-complete ${STACK_NAME}\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment