Skip to content

Sample code for a serverless Lambda useful to Start and Stop EC2 instances

License

Notifications You must be signed in to change notification settings

josesaribeiro/aws-lambda-start-stop-instances

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

This is the example code that goes with the article at http://marcelog.github.io/articles/aws_lambda_start_stop_ec2_instance.html.

This Lambda code is used to start and stop EC2 instances.

See the article mentioned above for the details.

Cheers :)

Using it

$ npm install
$ zip -r ec2_start_stop.zip *

Read the article for the details.

{
  "action": "start",
  "instanceId": "i-xxxx"
}

Action can be one of stop or start.

License

The source code is released under Apache 2 License.

Check LICENSE file for more information.

About

Sample code for a serverless Lambda useful to Start and Stop EC2 instances

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%