serverless-heaven / serverless-aws-alias

Alias support for Serverless 1.x
MIT License
189 stars 68 forks source link

Bug Fix - API Gateway template doesn't explicitly state defaults, so old configurations remain #153

Open bryan-hunter opened 5 years ago

bryan-hunter commented 5 years ago

The Cloudformation template for API Gateway staging was not including explicitly configured settings if those settings matched one of the defaults.

This was causing issues when trying to go from dataTraceEnabled: true back to dataTraceEnabled: false (the default setting). The template was not including the dataTraceEnabled: false. Therefore the API gateway stage configuration was remaining dataTraceEnabled: true.

Getting this PR out there while I have a few minutes. I will add more context later, if needed.