Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@softchef/cdk-apigateways

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@softchef/cdk-apigateways

This is a AWS CDK construct package. To mix multiple RestApi/HttpApi endpoints to CloudFront distribution(CDN). Also generate documentation page with your Swagger/OpenAPI definitions.

  • 2.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

AWS CDK with API Gateway(s) & CloudFront(CDN)

npm version Release npm

cdk-apigateways is an AWS CDK construct. It's help to mix multiple RestApi or HttpApi (API Gateway) or RestApi (@softchef/cdk-restapi) to the same CloudFront distribution. If you have provide the Swagger 2.0 / Open API 3.0 / Open API 3.1 definitions file, it will generate documentation website in the same distribution.

Installation

NPM

npm install @softchef/cdk-apigateways

Yarn

yarn add @softchef/cdk-apigateways

Example

const apis = new ApiGateways(this, 'ApiGateways', {
  stageName: 'prod',
  originApisConfig: {
    books: {
      originApi: booksApi,
    },
    articles: {
      originApi: articlesApi,
    },
  },
  distribution: {
    comment: 'ApiGateways',
  },
  documentation: {
    s3Bucket: docBucket,
    file: './docs/swagger.yaml',
  },
});

Todo List

  • Add architecture diagram
  • Add about Redoc

License

This code is licensed under the Apache License 2.0. See the LICENSE file.

Keywords

FAQs

Package last updated on 06 Apr 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc