terraform-aws-lambda-scheduler

Terraform module which allow to stop and start EC2 instances, RDS resources and AutoScaling Groups by a schedule with Lambda function. (by popovserhii)

Terraform-aws-lambda-scheduler Alternatives

Similar projects and alternatives to terraform-aws-lambda-scheduler

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better terraform-aws-lambda-scheduler alternative or higher similarity.

terraform-aws-lambda-scheduler reviews and mentions

Posts with mentions or reviews of terraform-aws-lambda-scheduler. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-17.
  • 🦊 GitLab CI: Deploy a Majestic Single Server Runner on AWS
    4 projects | dev.to | 17 Feb 2024
    ################################################################################ # Gitlab Runner EC2 Spot instance (with security group) ################################################################################ resource "aws_security_group" "in-ssh-out-all" { name = "in-ssh-out-all" vpc_id = module.vpc.vpc_id ingress { cidr_blocks = [ "0.0.0.0/0" ] from_port = 22 to_port = 22 protocol = "tcp" } // Terraform removes the default rule egress { from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = ["0.0.0.0/0"] } } resource "aws_spot_instance_request" "gitlab-runner" { ami = "ami-04ab94c703fb30101" # us-east-1, Canonical, Ubuntu, 22.04 LTS, amd64 jammy build on 2024-01-26. Choose here : https://cloud-images.ubuntu.com/locator/ec2/ instance_type = "r5d.4xlarge" key_name = "my-key" # create a key and put it here if you want to connect to your EC2 in SSH availability_zone = "us-east-1a" # sadly only one possible for now subnet_id = module.vpc.public_subnets[0] # sadly only one possible for now vpc_security_group_ids = [aws_security_group.in-ssh-out-all.id] user_data = file("aws-ec2-init-nvme-and-gitlab-runner.sh") valid_until = "2030-01-01T00:00:00Z" wait_for_fulfillment = true tags = merge( local.tags, { Scheduled = "working-hours" } ) } # Stop runner nightly and start it daily on working days # from https://github.com/popovserhii/terraform-aws-lambda-scheduler module "runner-stop-nightly" { source = "popovserhii/lambda-scheduler/aws" name = "stop-runner" aws_regions = ["us-east-1"] cloudwatch_schedule_expression = "cron(0 20 ? * MON-SUN *)" schedule_action = "stop" spot_schedule = true ec2_schedule = false rds_schedule = false autoscaling_schedule = false cloudwatch_alarm_schedule = false resource_tags = [ { Key = "Scheduled" Value = "working-hours" } ] } module "runner-start-daily" { source = "popovserhii/lambda-scheduler/aws" name = "start-runner" aws_regions = ["us-east-1"] cloudwatch_schedule_expression = "cron(0 08 ? * MON-FRI *)" schedule_action = "start" spot_schedule = true ec2_schedule = false rds_schedule = false autoscaling_schedule = false cloudwatch_alarm_schedule = false resource_tags = [ { Key = "Scheduled" Value = "working-hours" } ] }

Stats

Basic terraform-aws-lambda-scheduler repo stats
1
5
-
almost 4 years ago

popovserhii/terraform-aws-lambda-scheduler is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of terraform-aws-lambda-scheduler is JavaScript.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com