Configuring your default export destination for evidence finder
When you run queries in evidence finder, you can export your search results into a comma-separated values (CSV) file. Use this setting to choose the default S3 bucket where Audit Manager saves your exported files.
Prerequisites
Your S3 bucket must have the required permissions policy to allow CloudTrail to write
the export files to it. More specifically, the bucket policy must include an
s3:PutObject
action and the bucket ARN, and list CloudTrail as the
service principal.
-
For an example permission policy that you can use, see Example 3 (Export destination permissions).
-
For instructions to attach this policy to your S3 bucket, see Adding a bucket policy by using the Amazon S3 console.
-
For more tips, see configuration tips for your export destination on this page.
Configuration tips for your export destination
To ensure a successful file export, we recommend that you verify the following configurations for your export destination.
- AWS Region
-
The AWS Region of your customer managed key (if you provided one) must match the Region of your assessment. For instructions on how to change your KMS key, see Audit Manager data encryption settings.
- Cross-account S3 buckets
Using a cross-account S3 bucket as your export destination isn’t supported in the Audit Manager console. It’s possible to specify a cross-account bucket using the AWS CLI or one of the AWS SDKs, but for simplicity, we recommend that you not do this. If you do choose to use a cross-account S3 bucket as your export destination, consider the following points.
-
By default, S3 objects—such as CSV exports—are owned by the AWS account that uploads the object. You can use the S3 Object Ownership setting to change this default behavior, so that any new objects that are written by accounts with the
bucket-owner-full-control
canned access control list (ACL) automatically become owned by the bucket owner.Although it’s not a requirement, we recommend that you make the following changes to your cross-account bucket settings. Making these changes ensures that the bucket owner has full control of the exported files that you publish to their bucket.
-
Set the object ownership of the S3 bucket to bucket owner preferred, instead of the default object writer
-
Add a bucket policy to ensure that objects uploaded to that bucket have the
bucket-owner-full-control
ACL
-
-
To allow Audit Manager to export files to a cross-account S3 bucket, you must add the following S3 bucket policy to your export destination bucket. Replace the
placeholder text
with your own information. ThePrincipal
element in this policy is the user or role that owns the assessment and exports the file. TheResource
specifies the cross-account S3 bucket where the file is exported to.{ "Version": "2012-10-17", "Statement": [ { "Sid": "Allow cross account file exports", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::
AssessmentOwnerAccountId
:user/AssessmentOwnerUserName
" }, "Action": [ "s3:ListBucket", "s3:PutObject", "s3:GetObject", "s3:GetBucketLocation", "s3:PutObjectAcl", "s3:DeleteObject" ], "Resource": [ "arn:aws:s3:::CROSS-ACCOUNT-BUCKET
", "arn:aws:s3:::CROSS-ACCOUNT-BUCKET/*
" ] } ] }
-
Procedure
You can update this setting using the Audit Manager console, the AWS Command Line Interface (AWS CLI), or the Audit Manager API.