I installed the DataDog AWS CloudTrail Integration on my AWS account today (it creates a CloudFormation stack and creates, amongst other things, a Lambda that forwards logs from your CloudTrails logs in S3 onto your DataDog account).
After installing the integration I am seeing an error in the DataDog configuration screen:
<MY_AWS_ACCOUNT_ID>
management-events - aws-cloudtrail-logs-<redacted>-<redacted>
An error occurred (AccessDenied) when calling the ListObjects operation: Access Denied
Does anybody have any idea what IAM Permissions I need to grant to the IAM Role that DataDog created (as part of this CF stack) so that it can ListObjects
? I'm guessing this is an S3-related permission?
I see that the DataDog stack also created an S3 bucket for me called datadogintegration-forwarderstack-forwarderbucket-<redacted>
and its current bucket policy is:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSSLRequestsOnly",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::datadogintegration-forwarderstack-forwarderbucket-<redacted>",
"arn:aws:s3:::datadogintegration-forwarderstack-forwarderbucket-<redacted>/*"
],
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
}
]
}
But I'm not sure if I need to make a change to this policy or an IAM permission or something else.
Can anyone spot where I'm going awry?