4
4
5
5
` terraform-aws-sns-to-cloudwatch-logs-lambda ` is a Terraform module to provision a Lambda Function which routes SNS messages to CloudWatch Logs
6
6
7
- ## SNS to CloudWatch Logs Features
8
-
9
- This Lambda Function forwards subject & body of SNS messages to the specified CloudWatch Log Group Stream
10
-
11
- - Enhances the value of CloudWatch Logs by enabling writing log entries from virtually any service, notification or script
12
- - Allows cloud-init, bootstraps and functions to easily write entries to CloudWatch Logs
13
- - Simplifies troubleshooting solutions with decentralized logic
14
- - ex: scripts and functions spread across resources and services
15
- - Add instrumentation to shell-scripts: ` aws sns publish --topic-arn $TOPIC_ARN --message $LOG_ENTRY `
16
- - Use on instances with IAM instance policy may require ` --region $AWS_REGION ` parameter
17
-
18
7
## Terraform Module Features
19
8
20
9
This Module allows simple and rapid deployment
@@ -25,6 +14,17 @@ This Module allows simple and rapid deployment
25
14
- Create CloudWatch Event to prevent Function hibernation
26
15
- Set Log Group retention period
27
16
17
+ ## SNS to CloudWatch Logs Features
18
+
19
+ This Lambda Function forwards subject & body of SNS messages to CloudWatch Log Group Stream
20
+
21
+ - Enhances the value of CloudWatch Logs by enabling on-demand entry creation from any service, function and script
22
+ - Enables cloud-init, bootstraps and functions to easily write log entries to a centralized CloudWatch Log
23
+ - Simplifies troubleshooting of solutions with decentralized logic
24
+ - scripts and functions spread across instances, Lambda and services
25
+ - Easily add instrumentation to scripts: ` aws sns publish --topic-arn $TOPIC_ARN --message $LOG_ENTRY `
26
+ - Use with IAM instance policy may require ` --region $AWS_REGION ` parameter
27
+
28
28
## Usage
29
29
30
30
``` ruby
0 commit comments