Skip to main content

AWS CloudTrail

AWS CloudTrail is a service that logs AWS account auditing data to a new/selected AWS S3 (Simple Storage Service) bucket. Fluency Platform will integraton with S3 to collect and process this data stream.

AWS S3 buckets integrates with AWS SQS (Simple Queue Service) by way of Event Notifications. Fluency will make use of this integration to collect data, in order, as they arrive in AWS S3.

AWS CloudFormation

AWS CloudFormation allows you to configure AWS resources from script/code. This makes deployment easy, consistent, and greately decreases the possiblity of errors or misconfigurations.

Fluency offers a CloudFormation scripts to facilitate this integration. While these scripts are free to use, keep in mind that AWS CloudFormation is a paid service, and you will incur a charge from AWS for using it.

Fluency provides a single CloudFormation script to complete all the steps to collect CloudTrail data. The process to configure CloudTrail can be complicated, as can be seen from the CloudTrail Manual Set-up/Configurations section (provided below for reference).

Link to the CloudFormation file on S3:

https://fluency-cloudformation.s3.us-east-2.amazonaws.com/Fluency_AWS_Import_CloudTrail.yaml

Link to the CloudFormation file on S3 (for AWS GovCloud users):

https://fluency-cloudformation.s3.us-east-2.amazonaws.com/FluencyGovCloudTrail.yaml

Deploying a CloudFormation template

Navigate to the CloudFormation section of the AWS Management Console.

AWS Management Console with the CloudFormation service open

Under the "Stacks" section, choose "Create stack" (with new resources, standard).

CloudFormation Stacks list with the Create stack menu open on With new resources (standard)

On the following page, specify a template, and choose the desired template (using Amazon S3 URL) from above:

Create stack, Specify template step with Amazon S3 URL selected and the template URL entered

Click "Next" to continue.

Create stack wizard with the Next button at the bottom right of the Specify template step

Give this deployment a name, and specify some parameters of the queue. You can choose your own name, or keep the default values provided by Fluency.

NOTE: You must change the default value of the S3Bucket. Or the CloudFormation will always fail and be rolled back.

AWS S3 Bucket names must be Globally Unique; the default S3 bucket name already exists elsewhere in AWS.

Ensure that the AWS S3 Bucket name chosen follows the AWS Bucket naming rules.

Click "Next" to continue.

Specify stack details step with the stack name and the S3 bucket name parameter filled in

Configure additional items (optional).

Click "Next" to continue.

Configure stack options step with the optional tag, permission and rollback settings left at their defaults

Configure stack options step scrolled to the Next button

Review the deployment, when complete, choose "Create stack" to deploy.

The deployment in progress:

Review step showing the template, parameters and the Create stack button

Stack events list with the stack in CREATE_IN_PROGRESS

Once the deployment is complete, navigate to the "Outputs" tab.

Stack detail page with the Outputs tab selected

Copy the details (Key/Values) shown. You will be asked for these items on the Fluency interface.

Install the Application

Everything the AWS side produced — region, SQS queue URL, and either a role or an access key pair — goes into one form.

Go to Platform → Applications → Install Application From Template and choose AWS CloudTrail from the AWS Services category.

ParameterNotes
AWS RegionDrop-down, opens on US N.Virginia. Must match the region of the SQS queue.
SQS notification queue urlThe full queue URL from the CloudFormation output, not the ARN.
Pre-defined AWs RoleOptional. A role registered on Platform → Integrations.
Pre-defined AWs UserOptional. A user registered the same way.
IAM access keyOptional. Use instead of a role or user, not as well as.
IAM access secretOptional.
datalakePre-filled managed.
datalake index nameSits below the fold when the panel opens — scroll the panel body. Two applications writing to the same index name in the same lake will collide, and the second one aborts.

Setup New AWS CloudTrail Application panel showing the Application, Details and Parameters sections and the Install button

Press Install. The application appears under Installed Applications and builds the data source, the router with its adjustment processors, and the sink as a unit — the pieces the Configuration section below builds one at a time.

If the index name was already taken, the card comes up with a red Aborted badge instead of the green Running one; the blue eye button at the right of the card opens a details panel whose Details section carries the Error Message in red. Uninstall it from the bottom of that panel, then install again with a different index name.

Viewing an Aborted application, with the Error Message shown in red under Details

Not verified against the current product

What follows is the long way round. The Install the Application section above is verified against the 2026-07 interface capture and is the supported path; the manual build below — creating an AWS S3 w/ SQS integration, then adding a data source, router, sink and connections by hand on the Configuration page — produces the same pipeline the template builds for you. It is kept because it documents the moving parts, and because registering the integration separately is still worthwhile when several applications share one AWS account. Its screenshots have not been re-verified against the current interface.

Fluency Web Interface

Integration

AWS CloudTrail

Login to the Fluency portal:

Choose the Integrations option under the Platform menu in the navigation bar.

Fluency navigation bar with the Platform menu open on the Integrations option

Select the AWS S3 w/ SQS integration (S3Notification).

Available Integrations list with the AWS S3 w/ SQS (S3Notification) integration selected

In the left-hand panel, give the integration a short name (such as CloudTrailUSEast1), and optionally, a description. For Authentication Method, choose Access Key ID/Secret Key.

Integration configuration panel with the name, description and Access Key ID/Secret Key authentication method set

Using the values from the CloudFormation run in the previous step, populate the rest of the values. Ensure that the Region selected matches that of the SQS queue URL.

Integration configuration panel with the queue URL, region and key values from the CloudFormation outputs filled in

Click Save to finish adding the integration.

Saved CloudTrail integration listed among the configured integrations

Configuration

Data Source

Navigate to the Configuration option under the Platform menu in the navigation bar.

Fluency navigation bar with the Platform menu open on the Configuration option

Select the Add Data Souce + option on the left bottom side of the main page section.

Configuration page with the Add Data Source + button at the bottom of the sources column

In the left-hand panel, choose AWS S3 w/ SQS as the source Type, and give the integration a short name (such as AWSCloudTrail).

For the Format, choose json.

Data source properties panel with AWS S3 w/ SQS as the type, a source name, and json as the format

Review the populated values, and click Save to finish adding the source.

Configuration page with the new CloudTrail data source card in the sources column

The integration should now appear under the sources column.

Router

Staying on the Configuration page, select the Add Router + option on the center bottom side of the main page section.

Configuration page with the Add Router + button at the bottom of the routers column

In the left-hand panel, choose AWSCloudTrail_Adjustments as the Processor Name, and give the integration a short name. Optionally, you can select the checkbox to use the Processor name as the Router name.

Router properties panel with AWSCloudTrail_Adjustments selected as the processor and the router named

Click Save to finish adding the router.

Configuration page with the new CloudTrail router card in the routers column

Sink

Again staying on the Configuration page, ensure that the desired Data Sink is present. In most cases, it will be EventWatch.

Configuration page with the EventWatch data sink card in the sinks column

Connections

Finally, with all three components in place, click on the circles on the Configuration page, to logically connect the components together in a pipe line.

Configuration page with the source, router and sink joined by flow lines into a complete pipeline

The icons will turn Green when data is present.