leftclickben / serverless-api-stage

AWS API Gateway stage plugin for serverless framework
MIT License
48 stars 16 forks source link

Add Support for X-Ray and Full list of MethodSettings #30

Open mandyjohar23 opened 5 years ago

mandyjohar23 commented 5 years ago

Presently the plugin doesn't support enabling X-Ray for API Gateway Stage and controlling full exhaustive list of Method Settings variables.

Use Case:


  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.