Skip to content

Commit 4531049

Browse files
authored
AWS-1786 Rework making ReservedConcurrency optional; doc updates (#613)
1 parent 04c77ec commit 4531049

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

aws/logs_monitoring/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ The Datadog Forwarder is signed by Datadog. If you would like to verify the inte
292292
: Timeout for the Datadog Forwarder Lambda function.
293293

294294
`ReservedConcurrency`
295-
: Reserved concurrency for the Datadog Forwarder Lambda function.
295+
: Reserved concurrency for the Datadog Forwarder Lambda function. If empty, use unreserved account concurrency.
296296

297297
`LogRetentionInDays`
298298
: CloudWatch log retention for logs generated by the Datadog Forwarder Lambda function.

aws/logs_monitoring/template.yaml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ Parameters:
4141
Default: 300
4242
Description: TTL (in seconds) for the Datadog tags cache
4343
ReservedConcurrency:
44-
Type: Number
44+
Type: String
45+
AllowedPattern: "[0-9]*"
46+
ConstraintDescription: ReservedConcurrency must be an integer number
4547
Default: 100
46-
Description: Reserved concurrency for the Datadog Forwarder Lambda function
48+
Description: Reserved concurrency for the Datadog Forwarder Lambda function. If empty, use unreserved account concurrency.
4749
LogRetentionInDays:
4850
Type: Number
4951
Default: 90
@@ -217,13 +219,6 @@ Parameters:
217219
Type: String
218220
Default: ""
219221
Description: The name of the forwarder bucket to create. If not provided, AWS will generate a unique name.
220-
UseReservedConcurrency:
221-
Type: String
222-
Default: true
223-
AllowedValues:
224-
- true
225-
- false
226-
Description: Configure the Datadog Forwarder Lambda to use reserved concurrency. Set to false to use unreserved account concurrency.
227222
Conditions:
228223
IsAWSChina:
229224
Fn::Equals:
@@ -405,9 +400,10 @@ Conditions:
405400
- Ref: DdForwarderBucketName
406401
- ""
407402
SetReservedConcurrentExecutions:
408-
Fn::Equals:
409-
- Ref: UseReservedConcurrency
410-
- true
403+
Fn::Not:
404+
- Fn::Equals:
405+
- Ref: ReservedConcurrency
406+
- ""
411407
Rules:
412408
MustSetDdApiKey:
413409
Assertions:
@@ -1066,7 +1062,6 @@ Metadata:
10661062
- DdTraceIntakeUrl
10671063
- AdditionalTargetLambdaArns
10681064
- DdForwarderBucketName
1069-
- UseReservedConcurrency
10701065
ParameterLabels:
10711066
DdApiKey:
10721067
default: "DdApiKey *"

0 commit comments

Comments
 (0)