Skip to content

SoftChef/cdk-apigateways

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors