Changing defaults in serverless.yml?

Is there anyway to change the default values in serverless.yml?
If all our functions need cors, the same authorizer and integration can we setup a default value for these to apply to all functions/events?


Out of the box, not exactly.

However you can use serverless variables: to define something once and then reference it in multiple locations within the same file.

1 Like