# Tracing failures across Terraform state boundaries with AWS DevOps Agent

DevFeed: [Tracing failures across Terraform state boundaries with AWS DevOps Agent](<https://devfeed.tech/articles/tracing-failures-across-terraform-state-boundaries-with-aws-devops-agent-101178.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/devops/tracing-failures-across-terraform-state-boundaries-with-aws-devops-agent/>)

Author: Shruti Saxena

Published: 2026-10-26T17:21:23Z

Content type: article

Language: en

Sources: [AWS DevOps & Developer Productivity Blog](<https://devfeed.tech/sources/aws-devops-developer-productivity-blog.md>)

Topics: [Terraform](<https://devfeed.tech/topics/terraform.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [DevOps](<https://devfeed.tech/topics/devops.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [agent](<https://devfeed.tech/tags/agent.md>), [application](<https://devfeed.tech/tags/application.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cause](<https://devfeed.tech/tags/cause.md>), [change](<https://devfeed.tech/tags/change.md>), [devops](<https://devfeed.tech/tags/devops.md>), [devops-agent](<https://devfeed.tech/tags/devops-agent.md>), [generate](<https://devfeed.tech/tags/generate.md>), [kiro](<https://devfeed.tech/tags/kiro.md>), [post](<https://devfeed.tech/tags/post.md>), [root](<https://devfeed.tech/tags/root.md>), [shows](<https://devfeed.tech/tags/shows.md>), [stack](<https://devfeed.tech/tags/stack.md>), [state](<https://devfeed.tech/tags/state.md>), [team](<https://devfeed.tech/tags/team.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [terraform](<https://devfeed.tech/tags/terraform.md>), [this](<https://devfeed.tech/tags/this.md>), [traces](<https://devfeed.tech/tags/traces.md>), [tracing](<https://devfeed.tech/tags/tracing.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

The demo shows how AWS DevOps Agent can trace an application outage across independent Terraform states: a tightened security group egress rule blocks Lambda's TCP/443 path through a DynamoDB Gateway VPC endpoint, causing timeouts and misleading alarms. The agent correlates the alarms, resource dependencies, logs, metrics, and CloudTrail change; it reasons about AWS resources rather than identifying Terraform stack ownership. VPC Flow Logs provide additional evidence, and without them the network diagnosis has less support. The agent produces a mitigation specification; Kiro uses it to generate a Terraform fix for engineer review, planning, and application. The article notes that CloudTrail attributes Terraform changes to the IAM role that ran apply, not necessarily the individual engineer. Its sample intentionally injects failure and exposes an unauthenticated API, so it is not production-ready.

## Source excerpt

When a change in one Terraform stack silently breaks an application in another, the team seeing the symptoms often doesn't own the stack that caused it. This post shows how AWS DevOps Agent traces the root cause across Terraform state boundaries, then pairs with Kiro to generate the fix.