Added functionality for generating cloudformation json.