DianaIonita / serverless-api-gateway-caching

A plugin for the Serverless framework which helps with configuring caching for API Gateway endpoints.
ISC License
136 stars 35 forks source link

Optional 'restApiId' and 'basePath' settings #90

Closed thebeatlecoder closed 3 years ago

thebeatlecoder commented 3 years ago

If a shared API Gateway has been configured in a separate CloudFormation stack, users can now export its RestApiId and pass it to the plugin via an optional restApiId setting.

Also, if the shared gateway has a default base path that is not part of the endpoint configuration, it can now be specified using an optional basePath setting.

plugins:
  - serverless-api-gateway-caching

custom:
  apiGatewayCaching:
    enabled: true
    apiGatewayIsShared: true
    restApiId: ${cf:api-gateway-${self:provider.stage}.RestApiId}
    basePath: /animals