🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

serverless-apigateway-import-hook

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-apigateway-import-hook

Dynamically import an existing AWS API Gateway into your Serverless stack.

1.1.6
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

serverless-import-apigateway

Build Status Coverage Status

Dynamically import an existing AWS API Gateway into your Serverless stack.

Purpose

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.

This is a fork of https://github.com/MikeSouza/serverless-import-apigateway#readme . All credits go to him

Install

npm install serverless-import-apigateway-hook --save-dev

Configuration

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
PropertyRequiredTypeDefaultDescription
nametruestringThe name of the REST API for the AWS API Gateway to import
pathfalsestring/The root resource path to import from the REST API
resourcesfalsearray[]The existing resource paths to import from the REST API
hookfalsestringpublishThe serverless hook the API Injection will be done

Usage

Configuration of your serverless.yml is all you need.

There are no custom commands, just run: sls deploy

Keywords

serverless

FAQs

Package last updated on 21 Mar 2022

Did you know?

Socket

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.

Install

Related posts