Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkorzh/create-cloud-api
Create ☁️ AWS API
https://github.com/pkorzh/create-cloud-api
aws aws-apigateway aws-cloudformation aws-lambda build-tool serverless zero-configuration
Last synced: 6 days ago
JSON representation
Create ☁️ AWS API
- Host: GitHub
- URL: https://github.com/pkorzh/create-cloud-api
- Owner: pkorzh
- License: mit
- Created: 2017-12-22T10:05:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-24T19:15:32.000Z (almost 7 years ago)
- Last Synced: 2025-01-16T18:19:14.983Z (8 days ago)
- Topics: aws, aws-apigateway, aws-cloudformation, aws-lambda, build-tool, serverless, zero-configuration
- Language: JavaScript
- Homepage:
- Size: 81.1 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# create-cloud-api
Build tool to deploy ☁️ AWS powered APIs.
* 🚀 Supports AWS Cognito
* 👨💻 Use webpack to compile lambda code
* ⛷️ Generate AWS CloudFormation template
* 🚝 Generate client API SDK out of swagger definitionInspired by [react-create-app](https://github.com/facebookincubator/create-react-app) and [aws-serverless-auth-reference-app](https://github.com/awslabs/aws-serverless-auth-reference-app).
## How does it work
`create-cloud-api` expect you to write swagger definition for your API and lambda code. It will then generate CloudFormation template, pack & upload lambdas, and finally create a stack for you.
## Try It
Make sure you have AWS CLI [installed](http://docs.aws.amazon.com/cli/latest/userguide/installing.html) and configured (run `aws configure`).
You’ll also need to have Node >= 6 on your machine.
```sh
npm install -g create-cloud-api
create-cloud-api my-app
cd my-app/
npm run deploy
```To get the API url run `npm run get-client-config`
```json
{
"baseUrl": "https://.execute-api..amazonaws.com/dev",
...
}
```Point your browser to `/greeting`.
## How To
Read the full [user guide](https://github.com/pkorzh/create-cloud-api/blob/master/packages/cca-scripts/template/README.md).
Here's some topic selection:
- [Add API Key Authorization](https://github.com/pkorzh/create-cloud-api/blob/master/packages/cca-scripts/template/README.md#add-api-key-authorization)
- [Add AWS IAM Authorization](https://github.com/pkorzh/create-cloud-api/blob/master/packages/cca-scripts/template/README.md#add-aws-iam-authorization)
- [Listing Lambda Functions](https://github.com/pkorzh/create-cloud-api/blob/master/packages/cca-scripts/template/README.md#listing-lambda-functions)