Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions aws/logs_monitoring/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ Parameters:
Type: String
Default: ""
Description: The endpoint URL to forward the traces to, useful for forwarding traces through a proxy
DdForwarderBucketName:
Type: String
Default: ""
Description: The name of the forwarder bucket to create. If not provided, AWS will generate a unique name.
Conditions:
IsAWSChina:
Fn::Equals:
Expand Down Expand Up @@ -369,6 +373,11 @@ Conditions:
- Fn::Equals:
- Ref: DdTraceIntakeUrl
- ""
SetDdForwarderBucketName:
Fn::Not:
- Fn::Equals:
- Ref: DdForwarderBucketName
- ""
Rules:
MustSetDdApiKey:
Assertions:
Expand Down Expand Up @@ -653,7 +662,7 @@ Resources:
- Ref: DdApiKeySecret
- Fn::Sub: "${DdApiKeySecretArn}*"
Effect: Allow
# Fetch Lambda resource tags for data enrichment
# Fetch Lambda resource tags for data enrichment
- Fn::If:
- SetDdFetchLambdaTags
- Action:
Expand All @@ -671,7 +680,7 @@ Resources:
Resource: "*"
Effect: Allow
- Ref: AWS::NoValue
# To invoke a follower Lambda with the same event received by the forwarder for dual-shipping
# To invoke a follower Lambda with the same event received by the forwarder for dual-shipping
- Fn::If:
- SetAdditionalTargetLambdas
- Action:
Expand Down Expand Up @@ -742,6 +751,11 @@ Resources:
ForwarderBucket:
Type: AWS::S3::Bucket
Properties:
BucketName:
Fn::If:
- SetDdForwarderBucketName
- Ref: DdForwarderBucketName
- Ref: AWS::NoValue
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
Expand Down Expand Up @@ -1006,6 +1020,7 @@ Metadata:
- DdApiUrl
- DdTraceIntakeUrl
- AdditionalTargetLambdaArns
- DdForwarderBucketName
ParameterLabels:
DdApiKey:
default: "DdApiKey *"
Expand Down