{"library":"serverless-api-stage","title":"serverless-api-stage","description":"A Serverless Framework plugin for AWS API Gateway that enables stage variables and detailed logging configuration. Current stable version 1.4.0 adds custom Access Logging. The plugin creates an AWS::ApiGateway::Stage resource linked to the deployment, an IAM role for CloudWatch logs, and supports stage variables, method settings, cache, client certificate ID, and documentation version. It consolidates features from two separate plugins into one. Maintenance is sporadic; the roadmap includes breaking changes for v2 (optional role, standardised logical IDs, multiple stages). Key differentiator: tighter integration than manual CloudFormation.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install serverless-api-stage"],"cli":null},"imports":["plugins:\n  - serverless-api-stage","const ServerlessApiStage = require('serverless-api-stage');\n// then pass to Serverless constructor as plugin","// No official types; use @types/serverless or declare module"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# serverless.yml\nservice: my-service\nprovider:\n  name: aws\n  runtime: nodejs14.x\nplugins:\n  - serverless-api-stage\ncustom:\n  stageSettings:\n    CacheClusterEnabled: true\n    CacheClusterSize: '0.5'\n    Variables:\n      foo: bar\n      baz: xyzzy\n    MethodSettings:\n      - HttpMethod: ANY\n        ResourcePath: /*\n        LoggingLevel: INFO\n        DataTraceEnabled: true\n        MetricsEnabled: true\n        # ... more per-path settings\nfunctions:\n  hello:\n    handler: handler.hello\n    events:\n      - http:\n          path: hello\n          method: get","lang":"yaml","description":"Minimal serverless.yml configuration to enable stage variables and detailed logging via the plugin.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}