Terraform module designed to facilitate the creation of New Relic AWS Lambda alerts.
It's 100% Open Source and licensed under the APACHE2.
IMPORTANT: The master
branch is used in source
just as an example. In your code, do not pin to master
because there may be breaking changes between releases.
Instead pin to the release tag (e.g. ?ref=tags/x.y.z
) of one of our latest releases.
module "newrelic_alert" {
source = "git::https://github.com/enter-at/terraform-newrelic-alert-lambda.git?ref=master"
function_name = aws_lambda_function.main.function_name
function_arn = aws_lambda_function.main.arn
function_timeout = aws_lambda_function.main.timeout
policy_id = newrelic_alert_policy.main.id
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
enabled | (Optional) Set whether to enable the alert condition. Defaults to true. | bool | true |
no |
error_duration_critical | (Required) In minutes, must be in the range of 1 to 120, inclusive. Defaults to 3. | number | 3 |
no |
error_threshold_critical | (Required) Must be 0 or greater. Defaults to 0. | number | 0 |
no |
function_arn | (Required) The Amazon Resource Name (ARN) identifying the Lambda function. | string | - | yes |
function_name | (Required) The name identifying the Lambda function. | string | - | yes |
function_timeout | (Required) The amount of time the Lambda function can run in seconds. | number | - | yes |
policy_id | (Required) The ID of the policy where this condition should be used. | string | - | yes |
runbook_url | (Optional) Runbook URL to display in notifications. | string | null |
no |
since_value | (Optional) The value to be used in the SINCE MINUTES AGO clause for the NRQL query. Must be between 1 and 20. Defaults to 3. | number | 3 |
no |
Name | Description |
---|---|
error_rate_min_alert_condition_id | The ID of the NRQL error rate alert condition. |
execution_time_alert_condition_id | The ID of the NRQL execution time alert condition. |
Like this project? Please give it a ★ on our GitHub!
Check out these related projects.
- terraform-aws-lambda - Terraform module designed to facilitate the creation of AWS Lambda functions.
- terraform-aws-lambda-layer - Terraform module designed to facilitate the creation of AWS Lambda layers.
Got a question?
File a GitHub issue.
Please use the issue tracker to report any bugs or file feature requests.
If you are interested in being a contributor and want to get involved in developing this project, we would love to hear from you!
In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull Request so that we can review your changes
NOTE: Be sure to merge the latest changes from "upstream" before making a pull request!
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.