This lambda allow to poweroff all EC2 and RDS in a specific time range and with a timezone proper offset for each region
Name | Version |
---|---|
terraform | >= 1.0.0 |
aws | ~> 4.0 |
Name | Version |
---|---|
archive | n/a |
aws | ~> 4.0 |
No modules.
Name | Type |
---|---|
aws_cloudwatch_event_rule.cw_rule | resource |
aws_cloudwatch_event_target.cw_target | resource |
aws_cloudwatch_log_group.lambda_log | resource |
aws_iam_role.lambda_role | resource |
aws_iam_role_policy.lambda_policy | resource |
aws_lambda_function.main | resource |
aws_lambda_permission.allow_execution_from_cloudwatch | resource |
archive_file.lambda | data source |
aws_iam_policy_document.lambda_policy_doc | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
base_name | Application Name | string |
"poweroff" |
no |
cloudwatch_schedule_expression | Define the aws cloudwatch event rule schedule expression | string |
"rate(1 hour)" |
no |
extra_tags | Additional Tag to add | map(string) |
n/a | yes |
log_retention_days | Cloudwatch Log Retation Days | number |
90 |
no |
Name | Description |
---|---|
cloudwatch_event_rule_id | Cloudwatch rule ID |
lambda_arn | AWS Lambda ARN |
lambda_function_last_modified | The date Lambda function was last modified |
lambda_function_version | Latest published version of your Lambda function |
lambda_iam_role_arn | IAM role ARN |
lambda_iam_role_name | IAM role name |
log_group_arn | The Amazon Resource Name (ARN) specifying the log group |
log_group_name | The name of the scheduler log group |