Skip to content

Instantly share code, notes, and snippets.

@pas256
pas256 / api.rb
Created January 23, 2013 23:40
Module to help make dealing with AWS Ruby SDK endpoints and clients simpler
module AwsHelpers::Api
# Gets the AWS account this is running in
def self.get_aws_account
AWS_ACCOUNT # Configured in initializer
end
# Gets the credentials for the environment this is running in, or the
# specified account
def self.get_aws_credentials(account = get_aws_account)
@pas256
pas256 / gist:2493726
Created April 25, 2012 21:38
PAS hosts file
---
- group: local
hosts:
- 127.0.0.1
vars:
- pasVar: abcd123
- group: my
hosts: