diff --git a/lib/commands/deploy_endpoint.js b/lib/commands/deploy_endpoint.js index 5099274e9..905f961af 100644 --- a/lib/commands/deploy_endpoint.js +++ b/lib/commands/deploy_endpoint.js @@ -463,7 +463,13 @@ ApiDeployer.prototype._buildEndpoints = Promise.method(function() { .then(_this._createEndpointMethod) .then(_this._createEndpointIntegration) .then(_this._createEndpointMethodResponses) - .then(_this._createEndpointMethodIntegResponses); + .then(_this._createEndpointMethodIntegResponses) + .then(function() { + + // Clean-up hack + // TODO figure out how "apig" temp property is being written to the awsm's json and remove that + if (endpoint.apiGateway.apig) delete endpoint.apiGateway.apig; + }); }); });