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 | |
# run: awscreds.sh <mfa-code> | |
# works on OS X, replace path to key on last line | |
awsmfaf $1 | |
sshca-sign-user-key | |
ssh-add -D;ssh-add /Users/dakavanagh/.ssh/id_rsa2 |
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
{ | |
"StartAt": "Calculate", | |
"States": { | |
"Calculate": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:us-east-1:721404732763:function:DoMath", | |
"End": true | |
} | |
} | |
} |
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
{ | |
"first": "2", | |
"op": "*", | |
"second": "3" | |
} |
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
{ | |
"StartAt": "Calculate", | |
"States": { | |
"Calculate": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:us-east-1:721404732763:function:DoMath", | |
"ResultPath": "$.second", | |
"Next": "CalculateToo" | |
}, | |
"CalculateToo": { |
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
{ | |
"Comment": "A Hello World example of the Amazon States Language using a Pass state", | |
"StartAt": "HelloWorld", | |
"States": { | |
"HelloWorld": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:us-east-1:721404732763:function:WaitForFive", | |
"End": true, | |
"Retry": [ | |
{ |
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
#!/usr/bin/env python | |
''' First, use https://api-ipv4.us-or.viasat.io/Users.html#list-users to download | |
user data to a file called users.json. | |
''' | |
import argparse | |
import json | |
def main(): | |
''' Do the things |
OlderNewer