https://github.com/softchef/cdk-apigateways
https://github.com/softchef/cdk-apigateways
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/softchef/cdk-apigateways
- Owner: SoftChef
- License: apache-2.0
- Created: 2022-03-31T09:20:35.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-09T00:30:36.000Z (almost 4 years ago)
- Last Synced: 2025-02-25T08:22:41.910Z (over 1 year ago)
- Language: TypeScript
- Size: 193 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS CDK with API Gateway(s) & CloudFront(CDN)
[](https://badge.fury.io/js/%40softchef%2Fcdk-restapi)


`cdk-apigateways` is an AWS CDK construct. It's help to mix multiple `RestApi` or `HttpApi` (API Gateway) or `RestApi` [(@softchef/cdk-restapi)](https://github.com/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](https://github.com/SoftChef/cdk-apigateways/blob/main/LICENSE) file.