@@ -13,6 +13,10 @@ Parameters:
13
13
Description : The maximum of concurrent executions you want to reserve for the function.
14
14
Type : Number
15
15
Default : 2
16
+ MaximumEventAgeInSeconds :
17
+ Description : The maximum age of a request that Lambda sends to a function for processing.
18
+ Type : Number
19
+ Default : 21600
16
20
Username :
17
21
Description : The basic auth username, necessary if writing directly to Grafana Cloud Loki.
18
22
Type : String
@@ -51,6 +55,14 @@ Parameters:
51
55
Description : Determines whether to verify the TLS certificate
52
56
Type : String
53
57
Default : " false"
58
+ LogGroupName :
59
+ Description : Name of the CloudWatch Log Group to subscribe from.
60
+ Type : String
61
+ Default : " /aws/lambda/some-lamda-log-group"
62
+ IAMRoleName :
63
+ Description : Name of the LambdaPromtailRole IAM Role.
64
+ Type : String
65
+ Default : " iam_for_lambda"
54
66
55
67
Resources :
56
68
LambdaPromtailRole :
@@ -78,7 +90,7 @@ Resources:
78
90
- logs:PutLogEvents
79
91
- logs:PutSubscriptionFilter
80
92
Resource : arn:aws:logs:*:*:*
81
- RoleName : iam_for_lambda
93
+ RoleName : !Ref IAMRoleName
82
94
LambdaPromtailFunction :
83
95
Type : AWS::Lambda::Function
84
96
Properties :
@@ -119,6 +131,7 @@ Resources:
119
131
Properties :
120
132
FunctionName : !Ref LambdaPromtailFunction
121
133
MaximumRetryAttempts : 2
134
+ MaximumEventAgeInSeconds : !Ref MaximumEventAgeInSeconds
122
135
Qualifier : !GetAtt LambdaPromtailVersion.Version
123
136
# Copy this block and modify as required to create Subscription Filters for
124
137
# additional CloudWatch Log Groups.
@@ -128,7 +141,7 @@ Resources:
128
141
Properties :
129
142
DestinationArn : !GetAtt LambdaPromtailFunction.Arn
130
143
FilterPattern : " "
131
- LogGroupName : " /aws/lambda/some-lamda-log-group "
144
+ LogGroupName : !Ref LogGroupName
132
145
133
146
Outputs :
134
147
LambdaPromtailFunction :
0 commit comments