lambda-poweroff

giuliocalzolari/lambda-poweroff/aws

Terraform Module HCL AWS ⏱ stale 4y 0mo

AWS Lambda poweroff EC2/RDS for all region with timezone

Install

module "lambda-poweroff" {
source = "giuliocalzolari/lambda-poweroff/aws"
version = "0.0.2"
}
⭐ Source on GitHub 📦 Registry page

README

AWS Lambda Poweroff EC2/RDS This lambda allow to poweroff all EC2 and RDS in a specific time range and with a timezone proper offset for each region Requirements | Name | Version | |------|---------| | terraform | >= 1.0.0 | | aws | ~> 4.0 | Providers | Name | Version | |------|---------| | archive | n/a | | aws | ~> 4.0 | Modules No modules. Resources | 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_documen

Inputs (4)

NameTypeDescriptionDefault
extra_tagsmap(string)Additional Tag to add required
log_retention_daysnumberCloudwatch Log Retation Days90
cloudwatch_schedule_expressionstringDefine the aws cloudwatch event rule schedule expression"rate(1 hour)"
base_namestringApplication Name"poweroff"

Outputs (8)

lambda_function_version — Latest published version of your Lambda function
lambda_iam_role_name — IAM role name
lambda_iam_role_arn — IAM role ARN
cloudwatch_event_rule_id — Cloudwatch rule ID
log_group_name — The name of the scheduler log group
log_group_arn — The Amazon Resource Name (ARN) specifying the log group
lambda_arn — AWS Lambda ARN
lambda_function_last_modified — The date Lambda function was last modified

Resources (7)

aws_cloudwatch_event_ruleaws_cloudwatch_event_targetaws_cloudwatch_log_groupaws_iam_roleaws_iam_role_policyaws_lambda_functionaws_lambda_permission

Details

FrameworkTerraform Module
LanguageHCL
Version0.0.2
Cloud AWS
★ Stars0
Forks0
Total downloads4.5k
Inputs4
Outputs8
Resources7
LicenseWTFPL
Namespacegiuliocalzolari
Updated