Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(kinesisfirehose): add HTTP Endpoint and Datadog destination #33657

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
fix: build errors and integ test
  • Loading branch information
Benjamin Pottier authored and benjaminpottier committed Mar 5, 2025
commit b7ac8e84dbf08a9e0bab07b5a3cd5a9b9cd22b3b

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@
{
"Resources": {
"DeliveryStreamDatadogDestinationRoleBBA16F35": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "firehose.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"DeliveryStreamDatadogDestinationRoleDefaultPolicy20F1492B": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyDocument": {
"Statement": [
{
"Action": [
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Effect": "Allow",
"Resource": {
"Fn::GetAtt": [
"DeliveryStreamLogGroupA92E8EA0",
"Arn"
]
}
},
{
"Action": [
"s3:Abort*",
"s3:DeleteObject*",
"s3:GetBucket*",
"s3:GetObject*",
"s3:List*",
"s3:PutObject",
"s3:PutObjectLegalHold",
"s3:PutObjectRetention",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging"
],
"Effect": "Allow",
"Resource": [
{
"Fn::GetAtt": [
"DeliveryStreamS3Configuration3CBD6CC0",
"Arn"
]
},
{
"Fn::Join": [
"",
[
{
"Fn::GetAtt": [
"DeliveryStreamS3Configuration3CBD6CC0",
"Arn"
]
},
"/*"
]
]
}
]
},
{
"Action": [
"secretsmanager:DescribeSecret",
"secretsmanager:GetSecretValue"
],
"Effect": "Allow",
"Resource": {
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":secretsmanager:",
{
"Ref": "AWS::Region"
},
":",
{
"Ref": "AWS::AccountId"
},
":secret:DatadogApiKey-??????"
]
]
}
}
],
"Version": "2012-10-17"
},
"PolicyName": "DeliveryStreamDatadogDestinationRoleDefaultPolicy20F1492B",
"Roles": [
{
"Ref": "DeliveryStreamDatadogDestinationRoleBBA16F35"
}
]
}
},
"DeliveryStreamLogGroupA92E8EA0": {
"Type": "AWS::Logs::LogGroup",
"Properties": {
"RetentionInDays": 731
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"DeliveryStreamLogGroupDatadogDestinationB6E29CB9": {
"Type": "AWS::Logs::LogStream",
"Properties": {
"LogGroupName": {
"Ref": "DeliveryStreamLogGroupA92E8EA0"
}
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"DeliveryStreamS3Configuration3CBD6CC0": {
"Type": "AWS::S3::Bucket",
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"DeliveryStream58CF96DB": {
"Type": "AWS::KinesisFirehose::DeliveryStream",
"Properties": {
"DeliveryStreamType": "DirectPut",
"HttpEndpointDestinationConfiguration": {
"BufferingHints": {
"IntervalInSeconds": 60,
"SizeInMBs": 4
},
"CloudWatchLoggingOptions": {
"Enabled": true,
"LogGroupName": {
"Ref": "DeliveryStreamLogGroupA92E8EA0"
},
"LogStreamName": {
"Ref": "DeliveryStreamLogGroupDatadogDestinationB6E29CB9"
}
},
"EndpointConfiguration": {
"Url": "https://aws-kinesis-http-intake.logs.datadoghq.eu/v1/input"
},
"RequestConfiguration": {
"CommonAttributes": [],
"ContentEncoding": "GZIP"
},
"RetryOptions": {
"DurationInSeconds": 60
},
"RoleARN": {
"Fn::GetAtt": [
"DeliveryStreamDatadogDestinationRoleBBA16F35",
"Arn"
]
},
"S3Configuration": {
"BucketARN": {
"Fn::GetAtt": [
"DeliveryStreamS3Configuration3CBD6CC0",
"Arn"
]
},
"RoleARN": {
"Fn::GetAtt": [
"DeliveryStreamDatadogDestinationRoleBBA16F35",
"Arn"
]
}
},
"SecretsManagerConfiguration": {
"Enabled": true,
"RoleARN": {
"Fn::GetAtt": [
"DeliveryStreamDatadogDestinationRoleBBA16F35",
"Arn"
]
},
"SecretARN": {
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":secretsmanager:",
{
"Ref": "AWS::Region"
},
":",
{
"Ref": "AWS::AccountId"
},
":secret:DatadogApiKey"
]
]
}
}
}
},
"DependsOn": [
"DeliveryStreamDatadogDestinationRoleDefaultPolicy20F1492B"
]
}
},
"Mappings": {
"awscdkawskinesisfirehoseCidrBlocks": {
"af-south-1": {
"FirehoseCidrBlock": "13.244.121.224/27"
},
"ap-east-1": {
"FirehoseCidrBlock": "18.162.221.32/27"
},
"ap-northeast-1": {
"FirehoseCidrBlock": "13.113.196.224/27"
},
"ap-northeast-2": {
"FirehoseCidrBlock": "13.209.1.64/27"
},
"ap-northeast-3": {
"FirehoseCidrBlock": "13.208.177.192/27"
},
"ap-south-1": {
"FirehoseCidrBlock": "13.232.67.32/27"
},
"ap-south-2": {
"FirehoseCidrBlock": "18.60.192.128/27"
},
"ap-southeast-1": {
"FirehoseCidrBlock": "13.228.64.192/27"
},
"ap-southeast-2": {
"FirehoseCidrBlock": "13.210.67.224/27"
},
"ap-southeast-3": {
"FirehoseCidrBlock": "108.136.221.64/27"
},
"ap-southeast-4": {
"FirehoseCidrBlock": "16.50.161.128/27"
},
"ap-southeast-5": {
"FirehoseCidrBlock": "43.216.58.0/27"
},
"ca-central-1": {
"FirehoseCidrBlock": "35.183.92.128/27"
},
"ca-west-1": {
"FirehoseCidrBlock": "40.176.98.192/27"
},
"cn-north-1": {
"FirehoseCidrBlock": "52.81.151.32/27"
},
"cn-northwest-1": {
"FirehoseCidrBlock": "161.189.23.64/27"
},
"eu-central-1": {
"FirehoseCidrBlock": "35.158.127.160/27"
},
"eu-central-2": {
"FirehoseCidrBlock": "16.62.183.32/27"
},
"eu-north-1": {
"FirehoseCidrBlock": "13.53.63.224/27"
},
"eu-south-1": {
"FirehoseCidrBlock": "15.161.135.128/27"
},
"eu-south-2": {
"FirehoseCidrBlock": "18.100.71.96/27"
},
"eu-west-1": {
"FirehoseCidrBlock": "52.19.239.192/27"
},
"eu-west-2": {
"FirehoseCidrBlock": "18.130.1.96/27"
},
"eu-west-3": {
"FirehoseCidrBlock": "35.180.1.96/27"
},
"il-central-1": {
"FirehoseCidrBlock": "51.16.102.0/27"
},
"me-central-1": {
"FirehoseCidrBlock": "3.28.159.32/27"
},
"me-south-1": {
"FirehoseCidrBlock": "15.185.91.0/27"
},
"sa-east-1": {
"FirehoseCidrBlock": "18.228.1.128/27"
},
"us-east-1": {
"FirehoseCidrBlock": "52.70.63.192/27"
},
"us-east-2": {
"FirehoseCidrBlock": "13.58.135.96/27"
},
"us-gov-east-1": {
"FirehoseCidrBlock": "18.253.138.96/27"
},
"us-gov-west-1": {
"FirehoseCidrBlock": "52.61.204.160/27"
},
"us-west-1": {
"FirehoseCidrBlock": "13.57.135.192/27"
},
"us-west-2": {
"FirehoseCidrBlock": "52.89.255.224/27"
}
}
},
"Outputs": {
"ExportsOutputRefDeliveryStream58CF96DB919FEA68": {
"Value": {
"Ref": "DeliveryStream58CF96DB"
},
"Export": {
"Name": "aws-cdk-firehose-delivery-stream-s3-all-properties:ExportsOutputRefDeliveryStream58CF96DB919FEA68"
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Oops, something went wrong.