https://github.com/keitakn/aws-serverless-devops
Code for realizing DevOps using AWS Lambda
https://github.com/keitakn/aws-serverless-devops
aws-lambda devops ec2 serverless serverless-framework
Last synced: 8 months ago
JSON representation
Code for realizing DevOps using AWS Lambda
- Host: GitHub
- URL: https://github.com/keitakn/aws-serverless-devops
- Owner: keitakn
- Created: 2018-02-20T13:32:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-20T16:01:47.000Z (about 8 years ago)
- Last Synced: 2025-07-27T01:52:05.266Z (8 months ago)
- Topics: aws-lambda, devops, ec2, serverless, serverless-framework
- Language: TypeScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-serverless-devops
Code for realizing DevOps using AWS Lambda
# Getting Started
This Project uses Serverless Framework.
You need to create an IAM user with Administrator Access.
Please register Access key ID and Secret access key as credential.
I think that it is easy to use the following command.
```
serverless config credentials --provider aws --key --secret
```
Please refer to the [official document](https://serverless.com/framework/docs/providers/aws/guide/credentials/) for details.
## Install npm package
`yarn install`
## Deploy To AWS
`yarn run deploy:dev`
If you want to delete all resources, execute `yarn run remove:dev` .
# List of Lambda functions
## haltEc2Instances
This function stops all running EC2 instances.
## upEc2Instances
This function starts all stopped EC2 instances.
### When `haltEc2Instances` and `upEc2Instances` are executed
These functions are assumed to be scheduled.
Please fix the schedule of `serverless.yml` to the time you want to run.
Please refer to the [official document](https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html) for details.