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.

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

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

Click "Next" to continue.

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.

Configure additional items (optional).

Click "Next" to continue.

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

The deployment in progress:

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

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

Fluency Web Interface

Integration

AWS CloudTrail

Login to the Fluency portal:

https://(companyname).cloud.fluency<security/platform>.com.

Open the Main Menu from the upper left-hand corner and navigate to the Integrations option under the Platform section.

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

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.

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.

Click Save to finish adding the integration.

Configuration

Data Source

Navigate to the Configuration option under the Platform section from the Main menu.

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

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.

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

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.

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.

Click Save to finish adding the router.

Sink

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

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.

The icons will turn Green when data is present.

Page last updated: 2024 Jun 26