def deref(self, data):
<EOL>deref = copy.deepcopy(jsonref.JsonRef.replace_refs(data))<EOL>self.write_template(deref, filename='<STR_LIT>')<EOL>return deref<EOL>
AWS doesn't quite have Swagger 2.0 validation right and will fail
        on some refs. So, we need to convert to deref before
        upload.