This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ This Lambda Function forwards subject & body of SNS messages to CloudWatch Log G
30
30
``` ruby
31
31
module " sns_logger" {
32
32
source = " robertpeteuil/sns-to-cloudwatch-logs-lambda/aws"
33
- version = " 0.2.5 "
33
+ version = " 0.2.6 "
34
34
35
35
aws_region = " us-west-2"
36
36
sns_topic_name = " projectx-logging"
@@ -60,8 +60,8 @@ module "sns_logger" {
60
60
| log_group_retention_days | Log Group retention (days) | string | ` 0 ` (forever) | no |
61
61
| lambda_func_name | Name for Lambda Function | string | ` SNStoCloudWatchLogs ` | no |
62
62
| lambda_description | Lambda Function Description | string | ` Route SNS messages to CloudWatch Logs ` | no |
63
+ | lambda_tags | Mapping of Tags to assign to Lambda function | map | ` {} ` | no |
63
64
| lambda_publish_func | Publish Lambda Function | string | ` false ` | no |
64
65
| lambda_timeout | Function time-out (seconds) | string | ` 3 ` | no |
65
66
| lambda_mem_size | Function RAM assigned (MB) | string | ` 128 ` | no |
66
67
| create_warmer_event | Create CloudWatch trigger event to prevent hibernation | string | ` false ` | no |
67
-
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ resource "aws_lambda_function" "sns_cloudwatchlog" {
33
33
log_stream = " ${ var . log_stream_name } "
34
34
}
35
35
}
36
+
37
+ tags = " ${ var . lambda_tags } "
36
38
}
37
39
38
40
# -----------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -81,3 +81,8 @@ variable lambda_mem_size {
81
81
default = 128
82
82
description = " Amount of RAM (in MB) assigned to the function. The default (and minimum) is 128MB, and the maximum is 3008MB."
83
83
}
84
+
85
+ variable "lambda_tags" {
86
+ description = " A mapping of tags to assign to Lambda Function."
87
+ default = {}
88
+ }
You can’t perform that action at this time.
0 commit comments