Amazon Web Services | Insights
Depending on your preference for CloudTrail log collection, you can configure your Amazon Web Services (AWS) connector in multiple ways.
Prerequisites
Amazon Web Services access
- You must have the ability to create IAM roles and policies in your AWS Management Account.
- You must have familiarity with AWS CloudFormation and CloudTrail services.
- A credit card associated with your AWS account (required by the CloudFormation template).
Identity Security Insights access
- Administrator access to Identity Security Insights.
Configuration paths
Before you begin, determine your CloudTrail log collection preference. You will select this preference in Step 3 and it affects how you complete Steps 4 and 5.
| CloudTrail preference | When to use |
|---|---|
| Option A Create a new organization CloudTrail | You do not have an existing organization CloudTrail |
| Option B Use an existing organization CloudTrail | You already have an organization CloudTrail in the current region |
| Option C Use existing CloudTrails in multiple accounts | CloudTrail is configured at the account level across multiple accounts |
| Option D No CloudTrail collection | You do not want to enable CloudTrail log collection |
Step 1: Create the AWS connector in Insights
- From Insights Home, select
> Connectors.
The Connectors page displays. - Click Total configured.
- Select Create Connector > AWS.
- Enter a human-readable name for your connector.
Step 2: Obtain your Root Organization ID from AWS
- Follow the AWS documentation to view the AWS organization root details.
- In the Root details section, copy the Root Organizational Unit ID (for example, r-ad12).
Step 3: Create the CloudFormation stack
- In Insights, select the region to create the CloudFormation stack.
- Select whether to enable AI agents collection.
- Click the CloudFormation Template link.
The template creates an IAM role and policy for Insights to use when accessing your AWS resources. To use the template provided by the AWS connector, a credit card must be associated with your AWS account.
The AWS CloudFormation Create Stack wizard opens with pre-populated parameters.
-
In the Parameters section, verify the following parameters:
- RootOrgUnitId: Paste the Root Organizational Unit ID copied from the Root details section in AWS.
- BtConnectorExternalID: Ensure this matches the External ID provided by Identity Security Insights (for example, abcdef-1234567890/ABCDEF).
- CreateAccessAnalyzer: Determine whether to create access analyzer in the management account.
- EnableAIAgents: Determine whether to allow collecting AI Agent data, including AI data events in.
- EnableCloudTrail: Select the option that matches your CloudTrail preference from the Configuration paths section.
- Option A: Yes, create CloudTrail
- Option B: Yes, use existing CloudTrail
- Option C: Yes, use existing CloudTrails in multiple accounts
- Option D: No
- MemberAccountsWithCloudTrail: The list of member accounts having CloudTrail to integrate with.
- Fill this parameter only if you select Yes, use existing CloudTrails in multiple accounts for EnableCloudTrail.
-
In the Capabilities section, check the required boxes to acknowledge that AWS CloudFormation may create IAM resources.
-
Click Create stack.
Creating a stack may take several minutes. -
Select the CloudTrail log collection preference that correlates to your EnableCloudTrail selection in the stack parameters.
Step 4: Obtain the required values for the connector
- After the stack is created, in the AWS CloudFormation template, click the Outputs tab.
- Copy the BtOrgRoleArn value.
- In Insights, paste the BtOrgRoleArn value in the IAM Role ARN field (if CloudTrail log collection is enabled).
- Copy the CloudTrailBucketArn value.
- In Insights, paste the CloudTrailBucketArn value in the CloudTrail Ingest ARN field.
Step 5: Update existing CloudTrail configuration
If Use an existing trail for an AWS Organization is selected for CloudTrail log collection preference, you can update the trail configuration using either the AWS Management Console or AWS CloudShell.
Option A: Update using the console
1. Sign in to the AWS Management Console.
2. Go to CloudTrail > Trails > existing trail.
3. In CloudWatch Logs, click Edit.
4. Select Enabled for CloudWatch Logs.
5. Select Existing for Log group.
6. For the Log group name, enter BT-CloudTrailLogGroup.
7. Select Existing for IAM Role.
8. For the Role name, select BT-CloudWatch-Role.
AI agent data events (if applicable)
Complete this section only if AI agents collection is enabled.
If there are existing basic event selectors, the following steps will remove the existing event selectors.
-
In Data events, click Edit.
-
In Events, click the checkbox for Data Events if not enabled.
-
In Data events, click Switch to advanced event selectors if Basic event selectors are enabled.
-
Add the following data event types:
Resource Type AWS::Bedrock::AgentAlias AWS::Bedrock::AsyncInvoke AWS::Bedrock::FlowAlias AWS::Bedrock::Guardrail AWS::Bedrock::InlineAgent AWS::Bedrock::KnowledgeBase AWS::Bedrock::Model AWS::Bedrock::PromptVersion AWS::Bedrock::Session AWS::Bedrock::FlowExecution AWS::Bedrock::AutomatedReasoningPolicy AWS::Bedrock::AutomatedReasoningPolicyVersion AWS::Bedrock::DataAutomationProject AWS::Bedrock::DataAutomationInvocation AWS::Bedrock::DataAutomationProfile AWS::Bedrock::Blueprint AWS::BedrockAgentCore::CodeInterpreter AWS::BedrockAgentCore::Browser AWS::BedrockAgentCore::WorkloadIdentity AWS::BedrockAgentCore::WorkloadIdentityDirectory AWS::BedrockAgentCore::TokenVault AWS::BedrockAgentCore::APIKeyCredentialProvider AWS::BedrockAgentCore::Runtime AWS::BedrockAgentCore::RuntimeEndpoint AWS::BedrockAgentCore::Gateway AWS::BedrockAgentCore::Memory AWS::BedrockAgentCore::OAuth2CredentialProvider AWS::BedrockAgentCore::BrowserCustom AWS::BedrockAgentCore::CodeInterpreterCustom AWS::Bedrock::Tool -
Click Save changes.
Option B: Update using AWS CloudShell
> ⚠️
If the trail does not use Advanced event selectors, the script skips updating AI agent event selectors to avoid unintentionally modifying existing CloudTrail configurations. Configure data events manually as instructed in Option A.
- Enter the trail name.
- Download the script.
- Upload the script to AWS CloudShell.
- Enter
chmod +x bt_updatecloudtrail.shto allow script execution. - Enter the provided commands to run the script.
- Enter
rm bt_updatecloudtrail.shto remove the script after execution.
Final step: Create the connector
- Review all information on the Identity Security Insights Create AWS Connector panel.
- Click Create Connector.
Navigate to
> Connectors > Total Configured to confirm the connector was successfully created and review connector settings.
Updated 2 days ago