serverless-api-stage icon indicating copy to clipboard operation
serverless-api-stage copied to clipboard

Add Support for X-Ray and Full list of MethodSettings

Open mandyjohar23 opened this issue 5 years ago • 0 comments

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.

mandyjohar23 avatar Aug 30 '19 03:08 mandyjohar23