This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Provide basic support for MFA-required temporary sessions with the AWS CLI. | |
| # While not a hard dependency, this script plays nicely with zsh and the | |
| # aws plugin for oh-my-zsh. jq is required. | |
| # | |
| # https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/aws/aws.plugin.zsh | |
| # https://stedolan.github.io/jq/manual/ | |
| # | |
| # Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| usage() | |
| { | |
| echo "Find AWS resources using network interface information." | |
| echo "Usage: $0 {pri|pub|dns} <comma-separated list>" | |
| echo | |
| echo "pri: Private IP Address" | |
| echo "pub: Public IP Address" | |
| echo "dns: Public DNS Name" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Usage: cwlastlog.sh <Lambda function name> | |
| LAMBDA_FUNCTION="${1}" | |
| MESSAGE_LIMIT=50 | |
| # Get the name of the log stream with the most recent activity for this log group | |
| LAST_LOG_STREAM=`aws logs describe-log-streams --log-group-name "/aws/lambda/${LAMBDA_FUNCTION}" \ | |
| --descending --order-by LastEventTime --max-items 1 | jq --raw-output '.logStreams[0].logStreamName'` |
NewerOlder