Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 definition

Inspired 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)