项目作者: mijndert

项目描述 :
Lambda function to start & stop EC2 instances on a schedule
高级语言: HCL
项目地址: git://github.com/mijndert/tf-lambda-startstop-ec2.git
创建时间: 2021-06-20T19:09:19Z
项目社区:https://github.com/mijndert/tf-lambda-startstop-ec2

开源协议:MIT License

下载


README

Will start and stop one or more EC2 instances on a set schedule.

By default it will start the instances at 7 AM, and stop them at 7 PM. This can be changed in the Terraform module.

Deployment

  1. Change instance ID’s in (start|stop)/function.py
  2. Run terraform init
  3. Run terraform apply

TODO

  • Read instance ID’s from central file and package on the fly
  • Separate main.tf out into multiple files for readability