Public preview: This feature is public preview and available to all accounts.
Before Immuta can export audit events to your S3 bucket, you need to create a bucket policy that allows the Immuta audit service to add objects to your specified S3 bucket. The following Amazon S3 action will be granted to the audit service in the bucket policy:
s3:PutObject: Adds an object to a bucket.
To create the policy for the bucket, you must be the bucket owner.
Follow AWS documentation for adding a bucket policy in the Amazon S3 console. To create the policy for the bucket, you must be the bucket owner.
Edit the JSON in the Policy section to include a bucket policy like the example below. In this example, the policy allows immuta-audit-service (the Principal) to add objects to customer-bucket-name (and the contents within that bucket).
Note: If you use this example, replace the content in angle brackets with your Amazon Resource Name (ARN) and bucket name.
Save your changes.
You can configure your audit export destination using one of two methods:
Download the binary in a tab below that corresponds to your operating system:
Linux x86_64 (amd64)
Linux ARMv8 (arm64)
Darwin x86_64 (amd64)
Darwin ARMv8 (arm64)
The latest stable binary can be found here: https://immuta-platform-artifacts.s3.amazonaws.com/cli/latest/immuta_cli_windows_amd64.
Download and add the binary to a directory in your system's $PATH as immuta.exe.
For descriptions of the commands used below, see the Immuta audit export configuration CLI reference guide.
The SHA 256 checksum is available to verify the file at https://immuta-platform-artifacts.s3.amazonaws.com/cli/latest/immuta_cli_SHA256SUMS.
Run immuta configure
in your terminal.
Enter the URL of your Immuta tenant in the interactive prompt.
Enter your Immuta API Key.
Set the following parameters in a JSON or YAML file:
interval: The interval at which audit logs will be exported to your S3 bucket. They can be sent at 2-, 4-, 6-, 12-, or 24-hour intervals.
bucket name: Name of the bucket your audit logs will be sent to.
bucket path: Path to your bucket in Amazon S3.
region: AWS region (such as "us-east-1").
accessKeyId: AWS access key ID.
secretAccessKey: AWS secret access key.
Configure these settings in Immuta by running the following command:
To view all of the export configurations created for your instance of Immuta, run the following command:
To review a specific export configuration, run the get command with the export configuration ID as the argument:
To disable a configuration, run the following command with the export configuration ID as the argument:
To enable a disabled configuration, run the following command with the export configuration ID as the argument:
To delete an export configuration, run the following command with the export configuration ID as the argument:
Pass the following fields into the $data variable used in the mutation in the next step:
interval: The interval at which audit logs will be exported to your S3 bucket. They can be sent at 2-, 4-, 6-, 12-, or 24-hour intervals.
bucket name: Name of the bucket your audit logs will be sent to.
bucket path: Path to your bucket in Amazon S3.
region: AWS region (such as "us-east-1").
accessKeyId: AWS access key ID.
secretAccessKey: AWS secret access key.
Configure these settings in Immuta using the createS3ExportConfiguration
mutation:
The S3 export configuration to create.
To disable a configuration, use the disableExportConfiguration
mutation:
The ID of the export configuration to disable.
To enable a disabled configuration, use the enableExportConfiguration
mutation:
The ID of the export configuration to enable.