The full CloudFormation stack and Lambda definitions can be found in our GitHub repository.
Explore documentation
Automated AWS Integration
Better Stack offers a deeply integrated experience with AWS, allowing you to seamlessly monitor your cloud infrastructure.
Deploy our prepared CloudFormation template into your AWS account to gain comprehensive observability. This integration provides:
- Automatic ingestion of all CloudWatch metrics.
- Detection and per-log-group optional ingestion of all CloudWatch log groups.
- Automatic integration with CloudTrail to forward audit logs into Telemetry.
- Automatic integration with AWS X-Ray; forward traces from AWS into Telemetry.
1. Create a Source
Create a new AWS Source in Telemetry. You can use one source for all your regions (recommended for better cross-region trace correlation) or split your regions across different sources to vary retention/permissions.
2. Deploy the CloudFormation Stack
You will be presented with a button to "Deploy CloudFormation stack"; this will open the CloudFormation "Quick create stack" page from our template.
We set sensible defaults in the Quick create links, but there are four CloudFormation parameters you may wish to review:
CreateGlobalResources- (defaulttrue) - Create IAM roles. Set tofalsefor secondary regions after the first.EnableTagEnrichment- (defaulttrue) - Enable Lambda-based tag enrichment for metrics and logs. Data will still be forwarded to Telemetry without this, but the quality of the contextual information and metric tags will be lower.EnableCloudTrail- (defaulttrue) - Create a new CloudTrail trail, and configure AWS to forward that new trail to CloudWatch, and then to Telemetry.EnableXRayTransactionSearch- (defaulttrue) - Enable X-Ray Transaction Search to forward X-Ray data to CloudWatch, and then to Telemetry.
3. Complete the Integration
Once the CloudFormation stack is deployed, enter the IntegrationRoleArn and ExternalId outputs from the deployment and press 'Save' to complete the integration.
We will now start loading your log groups.
Controlling Forwarded Logs
By default, all log groups are automatically subscribed to and forwarded to Telemetry. You can disable this behavior and select specific groups or sets of groups to forward by visiting Source → Configure and selecting the groups you wish to forward from the AWS log groups section.
Need help?
Please let us know at hello@betterstack.com.
We're happy to help! 🙏