https://github.com/luisenmarroquin/todolist-serverless
AWS Lambda, DynamoDB and Serverless Framework multi environment backend
https://github.com/luisenmarroquin/todolist-serverless
actions api-gateway aws aws-lambda dynamo dynamodb github github-actions lambda node nodejs postman prettier serverless serverless-framework ts tsconfig typescript uuid uuid4
Last synced: 3 months ago
JSON representation
AWS Lambda, DynamoDB and Serverless Framework multi environment backend
- Host: GitHub
- URL: https://github.com/luisenmarroquin/todolist-serverless
- Owner: LuisEnMarroquin
- License: mit
- Created: 2022-02-28T01:19:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-09T22:10:10.000Z (over 4 years ago)
- Last Synced: 2026-01-03T16:20:29.682Z (7 months ago)
- Topics: actions, api-gateway, aws, aws-lambda, dynamo, dynamodb, github, github-actions, lambda, node, nodejs, postman, prettier, serverless, serverless-framework, ts, tsconfig, typescript, uuid, uuid4
- Language: TypeScript
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ToDoList Serverless
AWS Lambda, DynamoDB and Serverless Framework multi environment backend
## Create a user for Serverless
Create user `todolist-serverless` with `Programmatic access` and add `AdministratorAccess` managed policy
Add your credentials to GitHub Action Secrets (`AWS_KEY` and `AWS_SECRET`) and watch the magic happen!
## Add a custom domain to all envs
1. Issue a certificate for the domain in the same region of serverless project, in my case `us-east-2`
2. Go to `API Gateway` > `Custom domain names` > `Create`, fill it and choose `Regional` endpoint type
3. In the created domain there is `API Gateway domain name`, you'll need to point a `CNAME` record to it
4. Finally go to `API mappings` and create the mappings, in my case `main` and `prod` with stage `$default`
## Remove a stage from AWS console
1. Go to `API Gateway` > `Custom domain names` > `API mappings` and remove the stage that you want to remove
2. Go to `S3` and delete the bucket of the stage: `todolist-serverless-STAGE-serverlessdeploymentbuck-XXXXXX`
3. Go to `CloudFormation` and delete the stack of the stage that you will delete: `todolist-serverless-STAGE`
4. Go to `DynamoDB` > `Tables` and remove the table: `todolist-serverless-STAGE-todo` (all data will be lost)