daniellawrence/aws-security-pictures — pull request #24 by drewkhoury (2014-08-25 07:44:36+00:00)
Title: - Introduced debug flag

- added is_json def
- added get_resource_tags def
- added logic that checks if rds isn't supplied, this is a case where we want to try and find a 'database' tag in the EC2
-- we check for three tag names 'database', 'db' or 'rds'
-- we use either the EC2 param directly, or figure it out based off the ELB
-- we build a list of tags, and check each tag for a json string, which we bust out and iterate through (top level only)
-- we loop through the tags, and look for the 'db' name ... we don't handle more than one value very well, just overwrite until we get to the last one
- when we're drawing the RDS we make sure it exists in AWS