Skip to content

Commit f4c5398

Browse files
committed
CCM-9868: Making var name consistent
1 parent 28c78e0 commit f4c5398

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

infrastructure/modules/lambda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
|------|-------------|------|---------|:--------:|
1414
| <a name="input_application_log_level"></a> [application\_log\_level](#input\_application\_log\_level) | The detail level of the logs the application sends to CloudWatch | `string` | `"INFO"` | no |
1515
| <a name="input_aws_account_id"></a> [aws\_account\_id](#input\_aws\_account\_id) | The AWS Account ID (numeric) | `string` | n/a | yes |
16-
| <a name="input_cloudwatch_log_destination_arn"></a> [cloudwatch\_log\_destination\_arn](#input\_cloudwatch\_log\_destination\_arn) | Destination ARN to use for the log subscription filter | `string` | `""` | no |
1716
| <a name="input_component"></a> [component](#input\_component) | The name of the tfscaffold component | `string` | n/a | yes |
1817
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | A map of default tags to apply to all taggable resources within the component | `map(string)` | `{}` | no |
1918
| <a name="input_description"></a> [description](#input\_description) | Description of the Lambda | `string` | n/a | yes |
@@ -36,6 +35,7 @@
3635
| <a name="input_lambda_dlq_message_retention_seconds"></a> [lambda\_dlq\_message\_retention\_seconds](#input\_lambda\_dlq\_message\_retention\_seconds) | KMS Key ARN to be used for SNS Topic for on-failure Lambda invocation records | `number` | `86400` | no |
3736
| <a name="input_lambda_env_vars"></a> [lambda\_env\_vars](#input\_lambda\_env\_vars) | Lambda environment parameters map | `map(string)` | `{}` | no |
3837
| <a name="input_layers"></a> [layers](#input\_layers) | Lambda layer arns to include | `list(any)` | `[]` | no |
38+
| <a name="input_log_destination_arn"></a> [log\_destination\_arn](#input\_log\_destination\_arn) | Destination ARN to use for the log subscription filter | `string` | `""` | no |
3939
| <a name="input_log_level"></a> [log\_level](#input\_log\_level) | The log level to be used in lambda functions within the component. Any log with a lower severity than the configured value will not be logged: https://docs.python.org/3/library/logging.html#levels | `string` | `"INFO"` | no |
4040
| <a name="input_log_retention_in_days"></a> [log\_retention\_in\_days](#input\_log\_retention\_in\_days) | The retention period in days for the Cloudwatch Logs events generated by the lambda function | `number` | n/a | yes |
4141
| <a name="input_log_subscription_lambda_create_permission"></a> [log\_subscription\_lambda\_create\_permission](#input\_log\_subscription\_lambda\_create\_permission) | Whether to create a permission for the log forwarder. Set to false if using a generic one. | `bool` | `true` | no |

infrastructure/modules/lambda/cloudwatch_log_subscription_filter_firehose.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ resource "aws_cloudwatch_log_subscription_filter" "firehose" {
33
name = replace(aws_cloudwatch_log_group.main.name, "/", "-")
44
log_group_name = aws_cloudwatch_log_group.main.name
55
filter_pattern = var.filter_pattern
6-
destination_arn = var.cloudwatch_log_destination_arn
6+
destination_arn = var.log_destination_arn
77
role_arn = var.log_subscription_role_arn
88
}

infrastructure/modules/lambda/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ variable "filter_pattern" {
225225
default = ""
226226
}
227227

228-
variable "cloudwatch_log_destination_arn" {
228+
variable "log_destination_arn" {
229229
type = string
230230
description = "Destination ARN to use for the log subscription filter"
231231
default = ""

0 commit comments

Comments
 (0)