AWS CloudTrail Integration¶
AWS CloudTrail is AWS’ audit log for all API actions taken on resources. With access to your AWS CloudTrail events, Fugue can generate event-driven scans of your AWS accounts. This means that within minutes of a resource change, Fugue will detect this information (via AWS CloudTrail), trigger a scan to update resource state, and inspect the resource for any misconfigurations.
For event-driven scans to be enabled for a Fugue environment, you need to have the following in a corresponding AWS account and region:
AWS CloudTrail enabled.
An IAM role and EventBridge rule to send AWS CloudTrail events from your AWS account to Fugue.
Set up AWS CloudTrail¶
Provision CloudFormation Resources (AWS Console)¶
In the AWS console, navigate to the CloudFormation service.
Click Create stack > With new resources (standard).
In Prerequisite-Prepare template, select Template is ready.
In Specify template, select Upload a template file.
Click Choose file and upload the
fugue-aws-cloudtrail-integration.ymlfile (from step 1).
Click Next, and enter a Stack name.
Enter the following ARNs in the EventBusArn field:
On the AWS CloudFormation Create stack page, follow the prompts (defaults are fine) by clicking Next until you reach a page requesting acknowledgement for creating the required IAM resources.
Click Create stack.
Lastly, reach out to firstname.lastname@example.org to have event-driven scans enabled for your Fugue environment.