Skip to content

wearetechnative/terraform-aws-module-resource-powermanager

 
 

Repository files navigation

Providers

Name Version
archive n/a
aws n/a

Modules

No modules.

Resources

Name Type
aws_cloudwatch_event_rule.this resource
aws_cloudwatch_event_target.this resource
aws_cloudwatch_log_group.this resource
aws_iam_role.this resource
aws_iam_role_policy.autoscaling_group_scheduler resource
aws_iam_role_policy.cloudwatch_alarm_scheduler resource
aws_iam_role_policy.ecs_scheduler resource
aws_iam_role_policy.instance_scheduler resource
aws_iam_role_policy.lambda_logging resource
aws_iam_role_policy.rds_scheduler resource
aws_iam_role_policy.redshift_scheduler resource
aws_iam_role_policy.resource_groups_tagging_api resource
aws_iam_role_policy.spot_instance_scheduler resource
aws_lambda_function.this resource
aws_lambda_permission.this resource
archive_file.this data source
aws_iam_policy_document.autoscaling_group_scheduler data source
aws_iam_policy_document.cloudwatch_alarm_scheduler data source
aws_iam_policy_document.ecs_scheduler data source
aws_iam_policy_document.instance_scheduler data source
aws_iam_policy_document.rds_scheduler data source
aws_iam_policy_document.redshift_scheduler data source
aws_iam_policy_document.resource_groups_tagging_api data source
aws_iam_policy_document.spot_instance_scheduler data source
aws_iam_policy_document.this data source
aws_region.current data source

Inputs

Name Description Type Default Required
autoscaling_schedule Enable scheduling on autoscaling resources any false no
autoscaling_terminate_instances Terminate instances when autoscaling group is scheduled to stop bool false no
aws_regions A list of one or more aws regions where the lambda will be apply, default use the current region list(string) null no
cloudwatch_alarm_schedule Enable scheduleding on cloudwatch alarm resources any false no
cloudwatch_schedule_expression Define the aws cloudwatch event rule schedule expression string "cron(0 22 ? * MON-FRI *)" no
custom_iam_role_arn Custom IAM role arn for the scheduling lambda string null no
documentdb_schedule Enable scheduling on documentdb resources bool false no
ec2_schedule Enable scheduling on ec2 resources any false no
ecs_schedule Enable scheduling on ecs services bool false no
kms_key_arn The ARN for the KMS encryption key. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key. string null no
name Define name to use for lambda function, cloudwatch event and iam role string n/a yes
rds_schedule Enable scheduling on rds resources any false no
redshift_schedule Enable scheduling on redshift resources any false no
resources_tag DEPRECATED, use scheduler_tag variable instead map(string) null no
schedule_action Define schedule action to apply on resources, accepted value are 'stop or 'start string "stop" no
scheduler_tag Set the tag to use for identify aws resources to stop or start map(string)
{
"key": "tostop",
"value": "true"
}
no
tags Custom tags on aws resources map(any) null no

Outputs

Name Description
lambda_iam_role_arn The ARN of the IAM role used by Lambda function
lambda_iam_role_name The name of the IAM role used by Lambda function
scheduler_lambda_arn The ARN of the Lambda function
scheduler_lambda_function_last_modified The date Lambda function was last modified
scheduler_lambda_function_version Latest published version of your Lambda function
scheduler_lambda_invoke_arn The ARN to be used for invoking Lambda function from API Gateway
scheduler_lambda_name The name of the Lambda function
scheduler_log_group_arn The Amazon Resource Name (ARN) specifying the log group
scheduler_log_group_name The name of the scheduler log group

About

Terraform module which creates lambda scheduler for stop and start resources on AWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 74.8%
  • HCL 13.6%
  • Go 9.9%
  • Dockerfile 1.1%
  • Shell 0.6%