https://github.com/neilkuan/hello-express-aws-sdk
https://github.com/neilkuan/hello-express-aws-sdk
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/neilkuan/hello-express-aws-sdk
- Owner: neilkuan
- Created: 2021-08-24T01:22:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-24T05:12:25.000Z (almost 4 years ago)
- Last Synced: 2025-03-29T02:38:26.400Z (2 months ago)
- Language: TypeScript
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## To start server
```bash
$ npm i
$ npx nodemon source/server.ts
```### Build to js
```bash
$ npm run-script build
```### Node to run server
```bash
$ node build/server.js
```## Note
https://stackoverflow.com/questions/59961939/what-is-the-difference-between-aws-default-region-and-aws-region-system-variable
```bash
# Run on EC2
docker run -p 1337:1337 -e AWS_REGION=[your-aws-region] -e RUNTIME=EC2 -d docker.io/guanyebo/nodejs14-awssts-demo:v2
``````bash
# Run on ECS (task-role)
docker run -p 1337:1337 -e AWS_REGION=[your-aws-region] -e RUNTIME=ECS -d docker.io/guanyebo/nodejs14-awssts-demo:v2
``````bash
# Run on ECS Fargate (task-role)
AWS_REGION=[your-aws-region] -d docker.io/guanyebo/nodejs14-awssts-demo:v2
```