
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
serverless-apigateway-import-hook
Advanced tools
Dynamically import an existing AWS API Gateway into your Serverless stack.
Dynamically import an existing AWS API Gateway into your Serverless stack.
This plugin should no longer be used and is no longer necessary. See Serverless for an example of sharing a single API Gateway between multiple stacks.
npm install serverless-import-apigateway-hook --save-dev
Add the plugin to your serverless.yml
:
plugins:
- serverless-import-apigateway-hook
Add the custom configuration:
custom:
importApiGateway:
name: ${self:provider.stage}-existing-service # Required
path: / # Optional
resources: # Optional
- /existing
- /existing/resource
Property | Required | Type | Default | Description |
---|---|---|---|---|
name | true | string | The name of the REST API for the AWS API Gateway to import | |
path | false | string | / | The root resource path to import from the REST API |
resources | false | array | [] | The existing resource paths to import from the REST API |
hook | false | string | publish | The serverless hook the API Injection will be done |
Configuration of your serverless.yml
is all you need.
There are no custom commands, just run: sls deploy
FAQs
Dynamically import an existing AWS API Gateway into your Serverless stack.
The npm package serverless-apigateway-import-hook receives a total of 0 weekly downloads. As such, serverless-apigateway-import-hook popularity was classified as not popular.
We found that serverless-apigateway-import-hook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.