@@ -3,8 +3,8 @@ Description: Pushes logs, metrics and traces from AWS to Datadog.
33Mappings :
44 Constants :
55 DdForwarder :
6- Version : 4.6 .0
7- LayerVersion : " 81 "
6+ Version : 4.7 .0
7+ LayerVersion : " 82 "
88Parameters :
99 DdApiKey :
1010 Type : String
@@ -422,7 +422,7 @@ Resources:
422422 - !Ref DdForwarderExistingBucketName
423423 S3Key : !Sub
424424 - " aws-dd-forwarder-${DdForwarderVersion}.zip"
425- - { DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version] }
425+ - {DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version]}
426426 - ZipFile : " "
427427 MemorySize : !Ref MemorySize
428428 Runtime : python3.12
@@ -619,8 +619,8 @@ Resources:
619619 PolicyDocument :
620620 Version : " 2012-10-17"
621621 Statement :
622- - !If # Access the s3 bucket that is used by the forwarder as a datastore
623- - SetForwarderBucket
622+ - !If
623+ - SetForwarderBucket # Access the s3 bucket that is used by the forwarder as a datastore
624624 - Action :
625625 - s3:GetObject
626626 - s3:PutObject
@@ -660,8 +660,8 @@ Resources:
660660 - kms:Decrypt
661661 Resource : " *"
662662 Effect : Allow
663- - !If # Access the Datadog API key from Secrets Manager
664- - SetDDApiSsmParamName
663+ - !If
664+ - SetDDApiSsmParamName # Access the Datadog API key from Secrets Manager
665665 - !Ref AWS::NoValue
666666 - Action :
667667 - secretsmanager:GetSecretValue
@@ -679,31 +679,31 @@ Resources:
679679 Resource : " *"
680680 Effect : Allow
681681 - !Ref AWS::NoValue
682- - !If # Get tags for log groups and attach them to the logs sent to Datadog
683- - SetDdFetchLogGroupTags
682+ - !If
683+ - SetDdFetchLogGroupTags # Get tags for log groups and attach them to the logs sent to Datadog
684684 - Action :
685685 - logs:ListTagsForResource
686686 Resource : " *"
687687 Effect : Allow
688688 - !Ref AWS::NoValue
689- - !If # Required for Lambda deployed in VPC
690- - UseVPC
689+ - !If
690+ - UseVPC # Required for Lambda deployed in VPC
691691 - Action :
692692 - ec2:CreateNetworkInterface
693693 - ec2:DescribeNetworkInterfaces
694694 - ec2:DeleteNetworkInterface
695695 Resource : " *"
696696 Effect : Allow
697697 - !Ref AWS::NoValue
698- - !If # To invoke a follower Lambda with the same event received by the forwarder for dual-shipping
699- - SetAdditionalTargetLambdas
698+ - !If
699+ - SetAdditionalTargetLambdas # To invoke a follower Lambda with the same event received by the forwarder for dual-shipping
700700 - Action :
701701 - lambda:InvokeFunction
702702 Resource : !Ref AdditionalTargetLambdaArns
703703 Effect : Allow
704704 - !Ref AWS::NoValue
705- - !If # Access the Datadog API key from SSM
706- - SetDDApiSsmParamName
705+ - !If
706+ - SetDDApiSsmParamName # Access the Datadog API key from SSM
707707 - Action :
708708 - ssm:GetParameter
709709 - ssm:GetParameters
@@ -824,7 +824,7 @@ Resources:
824824 - !Ref SourceZipUrl
825825 - !Sub
826826 - " https://github.com/DataDog/datadog-serverless-functions/releases/download/aws-dd-forwarder-${DdForwarderVersion}/aws-dd-forwarder-${DdForwarderVersion}.zip"
827- - { DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version] }
827+ - {DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version]}
828828 # The Forwarder's source code is too big to fit the inline code size limit for CloudFormation. In most of AWS
829829 # partitions and regions, the Forwarder is able to load its source code from a Lambda layer attached to it.
830830 # In places where Datadog can't/doesn't yet publish Lambda layers, use another Lambda to copy the source code
0 commit comments