https://github.com/saranshmanu/serverless-application
https://github.com/saranshmanu/serverless-application
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/saranshmanu/serverless-application
- Owner: saranshmanu
- Created: 2021-04-05T18:49:59.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-11T05:04:15.000Z (about 4 years ago)
- Last Synced: 2025-02-01T07:19:00.908Z (4 months ago)
- Language: TypeScript
- Size: 452 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless Application using AWS-CDK

## Introduction
With serverless computing, infrastructure management tasks like capacity provisioning and patching are handled by AWS, so we can focus on only writing code that serves. Serverless services like AWS Lambda comes with automatic scaling and built-in high availability features.## AWS Services used by the Application
The following services are used to create a serverless RESTApi using various Amazon Web Services.- AWS Lambda Functions
- AWS API Gateway
- AWS System Manager
- AWS Subscription Filter
- AWS Managed Policy
- AWS Log Groups
- AWS Cloud Formation Stacks
- AWS Virtual Private Cloud
- AWS IAM## Usage
### Installation ProcessInstall AWS CDK
```bash
npm install -g aws-cdk
```Configure AWS credentials
```bash
aws configure
```### Build
The application is built to support different stages and environments. The ssm keys are read according to the environment and we will have to configure it according to the format ```//serverless-application/``` in the AWS console
```bash
npm run build
cdk bootstrap
cdk synth --quiet -c stage= -c environment=
```### Deploy
We need to specify the stage and environment to which we have to deploy
```bash
cdk deploy --all -c stage= -c environment=
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.## License
[MIT](https://choosealicense.com/licenses/mit/)