Note
We're still working on this feature, but we'd love for you to try it out!
This feature is currently provided as part of a preview program pursuant to our pre-release policies.
Autopilot can connect to the AWS DevOps Agent so both agents investigate an incident in parallel. Autopilot covers the application layer, and the AWS DevOps Agent covers the AWS infrastructure layer. Autopilot then merges both sets of findings into a single answer in the Ask AI panel.
If your team already uses the AWS DevOps Agent alongside New Relic, this integration gives you a merged investigation in Autopilot instead of requiring you to combine results from two tools.
What Autopilot investigates:
- Application error rates, latency spikes, service maps, and distributed traces
- Deployment and configuration change correlation
- User impact across affected services
- Kubernetes pod status, restart counts, and container metrics through the New Relic Kubernetes integration
What the AWS DevOps Agent investigates:
- AWS control plane and configuration state, such as IAM policy chains, Aurora and RDS maintenance windows and cluster configuration, and Lambda concurrency settings
- AWS Health events, such as EBS migrations, Availability Zone capacity events, and regional disruptions
- Layers below the Kubernetes API, such as host-level kubelet logs, VPC subnet exhaustion, and node
dmesgoutput - CloudTrail activity, which shows who changed what, when, and from where
- AWS data stores, including DynamoDB, S3, ElastiCache, EFS, DocumentDB, and Redshift state
Autopilot and the AWS DevOps Agent investigate in parallel when an alert triggers or you ask a question in the Ask AI panel:
Autopilot starts its own application-layer investigation.
If Autopilot detects an AWS infrastructure signal, or its confidence in the root cause is below a threshold, it calls the AWS DevOps Agent in parallel.
Both agents investigate at the same time. Autopilot shows its own findings as soon as they're ready and labels them New Relic Findings. A progress indicator shows that the AWS DevOps Agent is still running, which can take some time.
When the AWS DevOps Agent finishes its investigation, Autopilot merges both sets of findings into one answer with one of these outcomes:
Outcome
Meaning
Corroborated
Both agents reached the same conclusion, so two sources back the merged answer.
Conflicting
The agents reached different conclusions. Autopilot shows both positions and doesn't pick one.
Connected
The agents found different parts of a causal chain. For example, Autopilot identified a deployment, and the AWS DevOps Agent found that the deployment exhausted memory, which caused pod evictions, which caused the error spike.
Each finding is attributed, so you can see which ones came from Autopilot and which came from the AWS DevOps Agent.
Follow-up questions in the same thread reach the same in-progress AWS DevOps Agent task.
Prerequisites
In AWS
Make sure you have:
- AWS DevOps Agent: Enabled in your AWS account.
- Agent space: Created for the AWS accounts you want Autopilot to investigate. Note down the ID and AWS region that you enter during setup.
- Service credential: Created in AWS IAM Identity Center, Amazon Cognito, or an IAM service account with these permissions:
devops:ListAgentSpacesdevops:RunAgentdevops:GetAgentExecutionStatusdevops:GetAgentSpace
- Bearer token: Generated at the Operator scope (read-only causes silent investigation failures). Tokens expire after up to 60 days.
- New Relic MCP server connection: Added to the AWS DevOps Agent as a connected tool using your New Relic MCP server endpoint and credentials.
Note
If your team has already connected the New Relic MCP server to the AWS DevOps Agent, you don't need to connect it again. For instructions, refer to Connecting MCP Servers in the AWS DevOps Agent documentation.
In New Relic
Make sure you have:
- Autopilot set up in your organization: Refer to Set up Autopilot.
- Organization manager role: Required to be able to configure agent connections. Refer to role scopes.
Configure the integration in New Relic
The connection is account-scoped, so you don't need to set it up for each engineer.
Open the Autopilot configuration
To open the Autopilot configuration, click Ask AI, click ..., and then click Configure.
Enable agent connectors and join the preview for your account. This lets Autopilot delegate to external agents like the AWS DevOps Agent.
Note
If you don't see this section, contact your New Relic account team to confirm the integration is enabled for your account.
Connect the AWS DevOps Agent
Connect the AWS DevOps Agent to Autopilot, and then enter your bearer token, the AWS region, and the agent space ID. The token must have the Operator scope. New Relic stores it in an encrypted format and doesn't show it again.
Test and save the connection
Test and save the connection to confirm that New Relic can reach the agent space with your credential. The connection is live for all Autopilot runs in that account.
Manage the connection
Update the bearer token
Update the bearer token when it expires or AWS revokes it.
- In AWS, generate a new bearer token at the Operator scope and copy it.
- Open the Autopilot configuration, and then reconnect the AWS DevOps Agent from its card. The AWS region and agent space ID are already filled in.
- Replace the token, and then test and save the connection.
Disconnect the agent
To stop Autopilot from using the AWS DevOps Agent, disconnect it from its card in the Autopilot configuration. To use the agent again, enter the bearer token, AWS region, and agent space ID again.
Security and data handling
Here's how the integration handles data, credentials, and recommendations:
- Data that leaves New Relic: Autopilot sends the AWS account ID, region, entity type, and a description of the symptom to the AWS DevOps Agent. It doesn't send raw log data, metric time series, trace data, or customer PII.
- Authentication: New Relic stores the bearer token encrypted at rest. It resolves the token once per request and discards it immediately after use.
- Partner response handling: Only structured evidence records and the investigation summary from the AWS DevOps Agent reach the Autopilot merged answer. The internal reasoning and tool output of the AWS DevOps Agent don't, and New Relic blocks unknown content types by default.
- Manual execution of recommendations: Autopilot doesn't run any action that the AWS DevOps Agent suggests, including mitigation plans. Recommendations appear for you to review, and you run them yourself.
Limitations
These are the limitations that apply:
Area | Limitation |
|---|---|
Supported partner agent | The AWS DevOps Agent is the only supported partner agent. |
Authentication method | Autopilot supports only bearer token authentication, not OAuth or AWS SigV4. |
Token lifetime | AWS bearer tokens expire after up to 60 days. |
Agent spaces | One New Relic account maps to one AWS agent space. Autopilot doesn't support mapping to multiple agent spaces. |
Entity types | Autopilot routes only AWS entities to the AWS DevOps Agent. Entities without a |
AWS account scope | The AWS account of the alerted entity must be in the connected agent space. If it isn't, Autopilot investigates without the AWS DevOps Agent. |
Investigations per thread | You can't start a second investigation in a thread until the first one finishes. |
Required role | Only users with the Organization manager role can configure agent connections. |
Troubleshoot the connection
For setup errors (401, 403, 404, and 429) and bearer token expiry, refer to Troubleshoot the AWS DevOps Agent connection.