This file contains 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 | |
# will hold available machine hostnames | |
alive=() | |
# iterate through a subset of machines in UG04 | |
for suffix in {10..100}; do | |
# ping each one | |
ping -c 1 -t 1 "cca-ug04-130$suffix" > /dev/null 2>&1 |
This file contains 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
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"apigateway:*", | |
"cloudformation:CancelUpdateStack", | |
"cloudformation:ContinueUpdateRollback", | |
"cloudformation:CreateChangeSet", | |
"cloudformation:CreateStack", | |
"cloudformation:CreateUploadBucket", |
This file contains 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
function aws-sso-access-token() { | |
find "$HOME/.aws/sso/cache" -type f ! -name 'botocore*' -exec jq -r '.accessToken' {} \; | head -n1 | |
} | |
function aws-sso-list-accounts() { | |
aws sso list-accounts --access-token "$(aws-sso-access-token)" "$@" | |
} | |
function aws-sso-list-account-roles() { | |
aws sso list-account-roles --access-token "$(aws-sso-access-token)" "$@" |