serverless-api-stage
serverless-api-stage copied to clipboard
Add Support for X-Ray and Full list of MethodSettings
Presently the plugin doesn't support enabling X-Ray for API Gateway Stage and controlling full exhaustive list of Method Settings variables.
Use Case:
- Enable X-Ray for API Gateway Stage
- Control Cache, DataTrace, DetailedMethodMetrics etc at Global(use RequestPath: /*) and each Method Level(overwrite using individual RequestPaths)
stageSettings:
CacheClusterEnabled: true
CacheClusterSize: '0.5'
TracingEnabled: Boolean
Variables:
foo: bar
baz: xyzzy
# MethodSettings:Use this to overwrite above global settings at each method level.
# Type: List of MethodSetting
MethodSettings:
- CacheDataEncrypted: Boolean
CacheTtlInSeconds: Integer
CachingEnabled: Boolean
DataTraceEnabled: Boolean
HttpMethod: String
LoggingLevel: String
MetricsEnabled: Boolean
ResourcePath: String
ThrottlingBurstLimit: Integer
ThrottlingRateLimit: Double
...
- CacheDataEncrypted: Boolean
CacheTtlInSeconds: Integer
CachingEnabled: Boolean
...
...```
I will submit a PR for this.