Last updated:
Set Up AWS Integration
Setting up AWS monitoring in Dash0 requires deploying a CloudFormation template that creates IAM roles with cross-account access, enabling Dash0 to discover resources, scrape CloudWatch metrics, read resource tags, and instrument Lambda functions.
Prerequisites
- AWS Account Access: You need permissions to deploy CloudFormation stacks and create IAM roles in your AWS account.
- Dash0 Organization: An active Dash0 organization with access to the Infrastructure section.
- Dataset: A Dash0 dataset where discovered resources and metrics will be stored.
- AWS Resource Explorer: Resource Explorer must be turned on in your AWS account with an aggregator index and a default view. Dash0 uses it to discover resources.
- CloudTrail (for Lambda lifecycle events): Forwarding Lambda lifecycle events requires a CloudTrail trail that logs management events in the selected regions.
Step 1: Navigate to Connect AWS
In the Dash0 UI, navigate to Settings > Integrations, click on Add and select AWS.
Step 2: Select Dataset and Regions
The Connect AWS wizard guides you through three configuration steps:
1. Connect your dataset to store discovered resources:
Select the dataset where Dash0 will store AWS resource inventory and metrics. This determines where telemetry data from your AWS account will be routed.
2. Select the AWS regions where Dash0 should collect metrics:
Choose which AWS regions to monitor. Dash0 discovers resources and collects metrics only in the regions you select. You must select at least one region.
Regional selection applies to metric collection and resource discovery. You can modify the region list later if your infrastructure expands to additional regions.
3. Click the button below to open AWS CloudFormation and deploy the integration stack:
The wizard provides a Launch CloudFormation button that opens AWS CloudFormation in a new tab with the Dash0 template pre-loaded.
It's best to log in to the AWS account before adding the AWS integration to avoid issues with login redirects.
Step 3: Deploy the CloudFormation Stack
When you click Launch CloudFormation, AWS opens with the Dash0 integration template:
- Verify the AWS account and region in the CloudFormation console. Confirm you're in the desired account and the region where you want to deploy the root stack. If the region is incorrect, switch it in the AWS console before proceeding.
- Review the template parameters in the CloudFormation console. The template is pre-configured with your organization details and External ID. Under Features, check the two switches:
- CloudWatch metrics scraping (
EnableMetricsScraping, defaulttrue): Lets Dash0 read CloudWatch metrics and resource tags in the selected regions. Leave it attrueto scrape metrics and use AWS resource tags in Dash0. - AWS Lambda integration (
EnableLambdaIntegration, defaulttrue): StreamsAWS/Lambdametrics, forwards Lambda lifecycle events, and lets Dash0 instrument Lambda functions.
- CloudWatch metrics scraping (
- Acknowledge IAM resource creation by checking the box that confirms CloudFormation will create IAM resources.
- Click Create Stack to deploy the integration infrastructure.
The CloudFormation deployment takes a couple of minutes. The template creates:
- A read-only IAM role with cross-account trust to Dash0, including External ID for security. With metrics scraping turned on, this role can also read resource tags.
- A Lambda instrumentation IAM role (with the Lambda integration turned on) that lets Dash0 add and remove the Dash0 Lambda Layer.
- A StackSet (with the Lambda integration turned on) that deploys per-region resources across your selected AWS regions: an
AWS/Lambdametric stream via Amazon Data Firehose and EventBridge rules that forward Lambda lifecycle events.
Metrics scraping does not deploy any per-region resources. Dash0 reads CloudWatch through the read-only role.
The External ID in the IAM role trust policy is unique to your Dash0 organization and ensures that only your Dash0 account can assume the roles. All API calls to AWS include a session name formatted as dash0-{orgID}-{integrationID} for CloudTrail auditing.
Step 4: Discover and View Resources
After the CloudFormation stack deployment completes, Dash0 begins discovering resources in your AWS account:
- Resources, including Lambda functions, are discovered using AWS Resource Explorer across all selected regions.
- Resource tags are read and added to the discovered resources as
dash0.cloud.tags.<key>attributes. AWS/Lambdametrics begin streaming to your dataset (with the Lambda integration turned on).- EventBridge forwards lifecycle events to keep the inventory synchronized in real time.
Dash0 does not scrape any CloudWatch namespace until you turn it on in the Metrics tab. See Step 5.
It may take a few minutes for the Lambda functions to appear in the AWS infrastructure section.
Navigate to Infrastructure > AWS > Lambda to see the discovered Lambda functions. The page provides two modes that you can switch between using the toggle buttons:
- View functions: Shows all discovered Lambda functions with invocation counts, error rates, duration metrics, and cold start data.
- Instrument: Allows you to select functions for auto-instrumentation with the Dash0 Lambda Extension (delivered as a Lambda Layer).
The initial discovery crawl may take a few minutes depending on the number of Lambda functions in your account. The function list updates automatically as new functions are discovered or existing functions are modified.
Step 5: Choose CloudWatch Metrics to Scrape
With metrics scraping turned on, choose what Dash0 scrapes in the integration's Metrics tab:
- Navigate to Settings → Integrations and open your AWS integration.
- Select the Metrics tab. Dash0 lists the CloudWatch namespaces it finds in your selected regions under Namespaces found in regions.
- Use Search namespaces to find a namespace, then click Turn on on its card.
- Under Choose which metrics to collect, select the metrics in the Collect column.
- Optionally, click Add filter under Conditions to scrape only resources with specific tags or in specific regions. Use Global filters to apply conditions to every namespace.
- Click Save in the page header.
Dash0 scrapes the selected metrics every 5 minutes. For details on namespaces, metric selection, and costs, see Collect AWS CloudWatch Metrics. For filter keys and operators, see Filter AWS Metrics by Resource Tags.
Step 6: Instrument Lambda Functions (Optional)
To instrument Lambda functions, see Set Up AWS Lambda Auto Instrumentation.
Step 7: Choose CloudWatch log groups to forward
With a compatible template and Log-group instrumentation enabled, choose how to select your CloudWatch log groups:
- Manual selection: open the integration's Logs tab, select individual groups or a bulk selection, and click Save.
- Tag-based policy: define rules for the log groups' own AWS tags so eligible matches are selected during discovery, including newly discovered matching groups.
- Both: keep specific manual selections alongside an automatic tag policy in the same integration.
Dash0 configures the subscription filters for either path. Enabling the template feature alone does not select groups or start forwarding. Policy evaluation also requires logs:ListTagsForResource on the integration's read-only role.
This requires instrumentation permissions and regional delivery resources, including a CloudWatch Logs delivery role. Template v3.3 does not supply these prerequisites. If your stack has no EnableLogGroupInstrumentation parameter, check the compatible upgrade path with Dash0 support. See Collect AWS CloudWatch Logs for requirements, supported groups, and delivery verification.
Managing the Integration
After the initial setup, you can manage your AWS integration settings:
View Integration Details:
The integration detail page includes an Overview tab that displays:
- AWS Account: Your 12-digit AWS account ID.
- CloudFormation: Stack region and stack name.
- Roles: IAM role ARNs, permission types (Read Only or Resources Instrumentation), status, and last access timestamp.
- View Audit Logs: Link to audit logs showing all changes made to the integration.
The Metrics tab shows the CloudWatch namespaces and metrics Dash0 scrapes. See Step 5.
The Logs tab lists discovered log groups and their forwarding configuration. See Step 7.
Rename the Integration's Auth Token:
Each integration creates an ingest-only auth token that the stack uses to send telemetry to the integration's dataset. New tokens are named Auto-generated auth token for AWS account followed by the AWS account ID. To give the token a name of your choice, open it in Settings → Auth Tokens, change its Name, and save. The integration keeps managing the token's permissions, datasets, and secret, so the stack keeps sending data. See AWS integration tokens.
Delete the Integration:
Open the integration in Settings → Integrations and delete it. The Delete integration dialog offers two ways:
- Delete in CloudFormation: Opens the integration's stack in the AWS CloudFormation console in a new tab. Delete the stack there. When the deletion completes, CloudFormation notifies Dash0, and Dash0 removes the integration.
- Remove from Dash0 only: Removes the integration from Dash0 without touching AWS. Use it when you already deleted the CloudFormation stack and the integration is still listed in Dash0.
If Dash0 instrumented Lambda functions in the account, the dialog shows how many. Deleting the integration removes the Dash0 extension from these functions, and their telemetry stops immediately. Check I understand telemetry collection for these functions will stop. to continue.
Deleting the integration also deletes its auth token, unless it is the last auth token of your organization.
Connect Additional Accounts:
To monitor multiple AWS accounts, repeat the setup process for each account. Each account requires its own CloudFormation stack deployment and has a separate integration entry in Dash0.
Permissions Reference
The IAM roles created by the CloudFormation template have the following permissions:
Read-Only Role:
cloudformation:CreateChangeSet,cloudformation:DescribeStacks, andcloudformation:DescribeStackEventson the Dash0 integration stack itself- With metrics scraping or the Lambda integration turned on:
- The AWS managed
ViewOnlyAccesspolicy resource-explorer-2:Searchandresource-explorer-2:GetViewappsync:ListGraphqlApis,appsync:GetSchemaCreationStatus,appsync:ListDataSources,appsync:ListResolvers,appsync:ListFunctions,appsync:ListTagsForResource, andxray:GetIndexingRules
- The AWS managed
- With metrics scraping turned on:
tag:GetResources,tag:GetTagKeys, andtag:GetTagValues - With the Lambda integration turned on:
lambda:GetFunctionandlambda:GetFunctionConfiguration
Instrumentation Role (with the Lambda integration turned on):
lambda:GetFunctionCodeSigningConfig,lambda:GetFunctionConfiguration, andlambda:UpdateFunctionConfigurationon Lambda functionslambda:GetLayerVersionandlambda:GetLayerVersionPolicyec2:DescribeRouteTables,ec2:DescribeSecurityGroups, andec2:DescribeVpcAttribute
EC2 permissions are required only for validating VPC connectivity when Lambda functions are VPC-attached. Dash0 does not modify EC2 resources.
Removing Instrumentation
To remove Dash0 instrumentation from Lambda functions:
- Navigate to Infrastructure > AWS > Lambda in the Dash0 UI.
- Select the instrumented functions.
- Click Remove Instrumentation.
Dash0 will automatically remove the Dash0 Lambda Extension layer and environment variables, restoring the function to its previous configuration.
Troubleshooting
Verification fails with "Cannot assume role":
- Verify the CloudFormation stack deployed successfully without errors.
- Check the IAM role trust policy includes the correct Dash0 account ID and External ID.
- Ensure the External ID matches exactly what's shown in the Dash0 wizard.
- Verify your AWS account has the required permissions to create IAM roles with cross-account trust.
Functions not appearing after discovery:
- Wait 2-5 minutes for the initial discovery crawl to complete.
- Verify that AWS Resource Explorer is enabled in your AWS account and has indexed Lambda resources.
- Check the regional configuration to ensure the regions containing your functions are selected.
- Confirm the Read-Only IAM role has
resource-explorer-2:Searchpermission.
CloudFormation stack deployment fails:
- Check the CloudFormation console for detailed error messages.
- Verify you have permissions to create IAM roles, StackSets, and EventBridge rules.
- Ensure the External ID provided in the template parameters is correct.
- If deploying in a restricted environment, confirm your organization policies allow cross-account IAM role creation.
Integration cannot be changed or deleted after its CloudFormation stack was deleted:
If the stack was deleted in AWS but Dash0 did not get notified, for example because the stack was force-deleted, the integration stays in Dash0. Changing it fails with "The CloudFormation stack of this AWS integration no longer exists." Delete the integration and click Remove from Dash0 only. To monitor the account again, connect it as a new integration.
No scraped metrics appearing in Dash0:
- Confirm the CloudWatch metrics scraping parameter (
EnableMetricsScraping) is set totrueon the CloudFormation stack. - Open the integration's Metrics tab and check that the namespace is turned on and has metrics selected. A card that shows Collection off is not scraped.
- Check the namespace's Conditions and the Global filters. A tag or region filter that matches no resources leaves the scrape empty.
- Check that the regions containing your resources are selected for the integration.
- Wait at least 10 minutes after saving. Dash0 scrapes every 5 minutes.
- Scraping stops when your Dash0 subscription is canceled, unpaid, or the trial has ended.
No Lambda metrics appearing in Dash0:
- Confirm the AWS Lambda integration parameter (
EnableLambdaIntegration) is set totrueon the CloudFormation stack. - Verify the CloudFormation stack deployed regional resources in the correct regions.
- Confirm the dataset selected during setup is accessible and has the correct permissions.
- Ensure functions have been invoked at least once during the selected time range.
Next Steps
- Collect AWS CloudWatch Metrics — Choose the namespaces and metrics Dash0 scrapes
- Filter AWS Metrics by Resource Tags — Limit scraping to tagged resources and regions
- Use AWS Resource Tags in Dash0 — Filter and group telemetry by AWS tags
- About AWS Lambda Monitoring — Learn about Lambda auto-instrumentation capabilities
- Set Up AWS Lambda Auto Instrumentation — Instrument Lambda functions via the Dash0 UI
- Trace Lambda Invocations — View traces with full Lambda context
- Debug Timeouts and Errors — Find failed invocations using synthetic traces
- Analyze Cold Starts — Measure and reduce cold start latency


