Explore documentation
AI SRE AWS integration
Connect AWS to give AI SRE read-only access to the logs, metrics, traces, CloudTrail events and resources of an AWS account during an investigation.
Connect your AWS account
- Open Integrations in AI SRE.
- Click Add next to AWS.
- Enter your 12-digit AWS account ID.
- Click Create integration.
- Click Deploy CloudFormation stack. It opens AWS CloudFormation with Better Stack's template and your integration's parameters filled in.
- Sign in to the AWS account you entered, as a user who can create IAM roles.
- Select the acknowledgement that AWS CloudFormation might create IAM resources with custom names.
- Create the stack.
- Keep the integration's page open until it shows AWS account connected. That takes about a minute once the stack is ready. With the page closed, it can take up to an hour.
Each integration connects one AWS account. Add another integration for every other account.
What AI SRE can read
Once connected, AI SRE can read:
- CloudWatch alarms, metrics, log events and Logs Insights queries.
- X-Ray traces, CloudTrail event history and AWS Health events.
- Descriptions of your compute, database, networking and messaging resources, such as EC2 instances, ECS services, EKS clusters, RDS databases and load balancers.
- CloudFormation stacks and the status of their resources.
The CloudFormation template is open source. It creates one read-only IAM role, better-stack-ai-sre-role-<8 hex>, and nothing that runs or stores data.
Remove the integration
- In AI SRE → Integrations, click the account's ID under AWS.
- Click Remove.
- Confirm. AI SRE stops using the role right away.
- In AWS CloudFormation, delete the
betterstack-ai-sre-<8 hex>stack the AWS integration was successfully removed. message names. Deleting the stack deletes the role.