Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exanubes/api-gateway
Repository from blog exanubes.com for Creating API Gateway with custom domain.
https://github.com/exanubes/api-gateway
api-gateway aws aws-cdk aws-sam-cli-beta-cdk cdk custom-domain lambda sam sam-beta-cdk serverless serverless-application-model
Last synced: about 22 hours ago
JSON representation
Repository from blog exanubes.com for Creating API Gateway with custom domain.
- Host: GitHub
- URL: https://github.com/exanubes/api-gateway
- Owner: exanubes
- Created: 2022-01-13T18:14:26.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T08:01:36.000Z (about 3 years ago)
- Last Synced: 2024-04-17T02:33:01.027Z (9 months ago)
- Topics: api-gateway, aws, aws-cdk, aws-sam-cli-beta-cdk, cdk, custom-domain, lambda, sam, sam-beta-cdk, serverless, serverless-application-model
- Language: TypeScript
- Homepage: https://exanubes.com/blog/create-api-gateway-with-custom-domain
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Gateway
Repository from [exanubes.com](https://exanubes.com) for [Create API Gateway with custom domain](https://exanubes.com/blog/create-api-gateway-with-custom-domain).
## Commands:
Run the following commands for deploying and destroying the stacks
```
npm run cdk:deploy
npm run cdk:destroy
```Both of these commands use the `aws-cli sts` service to get the account id and aws IAM role `exanubes-cloudformation-access` in order to dynamically provide role arn. Make sure you're using the account you want to deploy the stacks to and that you have the role created either with the same name or different name and change the scripts in `package.json`.
These commands use `sam-beta-cdk` CLI, you can install it with:
```
brew install aws-sam-cli-beta-cdk
```