Categorygithub.com/lablabs/terraform-aws-lambda-healthcheck

# README

AWS Lambda health check Terraform module

Labyrinth Labs logo

We help companies build, run, deploy and scale software and infrastructure by embracing the right technologies and principles. Check out our website at https://lablabs.io/


Terraform validation pre-commit

Description

A terraform module to deploy a health check lambda function and to provide AWS CloudWatch Metric Alarm resource.

Requirements

NameVersion
terraform>= 1.0
aws>= 4.0

Modules

No modules.

Resources

NameType
aws_cloudwatch_event_rule.triggerresource
aws_cloudwatch_event_target.thisresource
aws_cloudwatch_log_group.thisresource
aws_cloudwatch_metric_alarm.defaultresource
aws_iam_policy.thisresource
aws_iam_role.thisresource
aws_iam_role_policy_attachment.thisresource
aws_lambda_function.thisresource
aws_lambda_permission.thisresource
aws_sns_topic.snsresource

Inputs

NameDescriptionTypeDefaultRequired
cw_metric_nameCloudWatch metric namestringn/ayes
cw_metric_namespaceCloudWatch metric namespacestringn/ayes
namen/astringn/ayes
regionn/astringn/ayes
sg_idsn/alist(string)n/ayes
subnet_idsn/alist(string)n/ayes
target_urlURL which is checked by the lambda functionstringn/ayes
lambda_schedulen/astring"cron(*/5 * * * ? *)"no
secret_namen/astring""no

Outputs

No outputs.

Contributing and reporting issues

Feel free to create an issue in this repository if you have questions, suggestions or feature requests.

Validation, linters and pull-requests

We want to provide high quality code and modules. For this reason we are using several pre-commit hooks and GitHub Actions workflow. A pull-request to the master branch will trigger these validations and lints automatically. Please check your code before you will create pull-requests. See pre-commit documentation and GitHub Actions documentation for further details.

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.