Aws terrafrom module to deploy a lambda which can start ec2s when devs need it and stop them at the end of the day
module "aws_tf_ec2_self_service" { source = "/aws_tf_ec2_self_service" }
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| ec2_stop_cron | Rate expression for when to run the stop | string | "cron(0 20 ? * MON-FRI *)" |
no |
| function_prefix | Prefix for the name of the lambda created | string | "" |
no |
| aws_region | region deployed | string | "eu-west-1" |
no |
Configure your AWS credentials using one of the supported methods for AWS CLI
tools, such as setting the
AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables. If you're using the ~/.aws/config file for profiles then export AWS_SDK_LOAD_CONFIG as "True".