Skip to content

divamtech/ecs-up-down-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-ecs-up-down-lambda

We are adding two aws-event bridge schedulers. First scheduler to off the service at desireCount=0 at night 11PM. And second scheduler run to wake up the cluster at morning at 9AM.

Event Bridge sample payload for ECS service

{
  "cluster": "divamtech-staging",
  "services": ["divamtech-staging-server-service", "divamtech-staging-worker-service"],
  "desiredCount": 1
}

Event Bridge sample payload for EC2 service

{ "ec2InstanceIds": ["i-0362c8fc8eb38bc36"], "ec2Action": "start" }

Voila!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published