Skip to content

Instantly share code, notes, and snippets.

View gibbster's full-sized avatar

David Gibb gibbster

  • Amazon Web Services
  • San Francisco
View GitHub Profile
aaron
aback
abaft
abase
abash
abate
abbas
abbes
abbey
abbot
aalii
aaron
abaca
aback
abaff
abaft
abama
abase
abash
abask
import requests
from openpyxl import Workbook
from string import Template
ri_url = Template('https://a0.p.awsstatic.com/pricing/1.0/ec2/region/$region/reserved-instance/$os/index.json')
ebs_url = Template('https://a0.p.awsstatic.com/pricing/1.0/ec2/region/$region/ebs/index.json')
regions = ['us-east-1','us-east-2', 'us-west-1', 'us-west-2', 'ap-east-1', 'ap-south-1', 'ap-northeast-2', 'ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'ca-central-1', 'eu-central-1', 'eu-west-1', 'eu-west-2', 'eu-west-3', 'eu-north-1', 'sa-east-1', 'us-gov-east-1', 'us-gov-west-1']
oses = ['linux', 'rhel', 'suse', 'windows', 'windows-std', 'windows-web', 'windows-enterprise']
wb = Workbook()
dest_filename = 'AWS_Pricing.xlsx'
#!/bin/bash
# .git/hooks/pre-commit
terraform fmt -check=true
if [ $? -eq 0 ]
then
echo "Format looks okay"
exit 0
else
echo "Please format the terraform code first (use terraform fmt)"

Keybase proof

I hereby claim:

  • I am gibbster on github.
  • I am gibbster (https://keybase.io/gibbster) on keybase.
  • I have a public key ASAHxOJBbqgt5G5R-YcS6G1nNJe6HfYj7-Hlc6cIMVB5cQo

To claim this, I am signing this object:

@gibbster
gibbster / bumpme
Last active December 21, 2016 00:54
Wed Dec 21 00:54:54 UTC 2016
0.0.1
Fri Apr 29 00:49:25 UTC 2016
"WebServerInstance" : {
"Type" : "AWS::EC2::Instance",
"Metadata" : {
"Comment" : "Install a simple application",
"AWS::CloudFormation::Init" : {
"config" : {
"packages" : {
"yum" : {
"httpd" : []
}