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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.99designs.aws-vault</string> | |
<key>Program</key> | |
<string>/usr/local/bin/aws-vault</string> | |
<key>ProgramArguments</key> | |
<array> |
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
// Google Sheets custom formula to pull latest AWS Instance pricing info | |
// Example: https://docs.google.com/spreadsheets/d/11jfqBnbeaqWzdn1xXIvIlH8Vkl9gcpG0EL2ti-8Tc-4/edit?usp=sharing | |
// Uses data from https://ec2instances.info | |
var INSTANCES_JSON = 'https://raw.githubusercontent.com/powdahound/ec2instances.info/master/www/instances.json'; | |
// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/apply_ri.html#ri-normalization-factor | |
var INSTANCES_NORMALIZATION = { | |
'nano': 0.25, | |
'micro': 0.5, |
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
#!/usr/bin/env python3 | |
import boto3 | |
import logging | |
import sys | |
import time | |
logging.basicConfig(level=logging.INFO) | |
if len(sys.argv) != 4: |
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
var ( | |
sess = session.Must(session.NewSession()) | |
client = &http.Client{ | |
Transport: NewAWSSigner(sess, "execute-api", http.DefaultTransport), | |
Timeout: 10 * time.Second, | |
} | |
} |
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
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"log" | |
"github.com/aws/aws-lambda-go/events" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" |