AWS Builder Center

AWS Devops Agent-Builders skill sprint

This blog describes my experience through the devops agent skill sprint of AWS

My Experience with AWS DevOps Agent – Builders Skill Sprint

Introduction

I recently participated in the AWS DevOps Agent Builders Skill Sprint organized by the AWS User Group. The sprint provided a hands-on opportunity to explore AWS DevOps Agent, an AI-powered operational assistant that helps engineers investigate infrastructure issues, identify root causes, and recommend fixes using natural language.
Throughout the sprint, I worked on multiple real-world troubleshooting scenarios involving AWS Lambda, Amazon EC2, CloudWatch Alarms, IAM, and DynamoDB. Each challenge simulated a different production issue and demonstrated how the DevOps Agent could assist in diagnosing and resolving problems efficiently.



Challenge 2 – First Investigation

The first investigation involved a Lambda function that failed on every invocation.

Investigation

After deploying the CloudFormation stack and reproducing the error, I used AWS DevOps Agent to analyze the failing function.

Root Cause

The agent identified that the Lambda function referenced an undefined variable:
return {"result": config["value"]}

Since the variable  config  was never defined, every execution resulted in a NameError, causing the function to fail.

Resolution

I updated the Lambda function by defining the missing configuration object and redeployed the function. After testing again, the Lambda executed successfully, the CloudWatch alarm returned to the OK state, and the DevOps Agent confirmed the function was healthy.

Learning Outcome

This challenge showed how AWS DevOps Agent can quickly pinpoint application-level issues by analyzing execution logs and runtime behavior, significantly reducing debugging time.



Challenge 3 – Stress & Diagnose

The third challenge focused on diagnosing performance issues on an EC2 instance.

Scenario

An EC2 instance named challenge3-stress experienced continuously high CPU utilization, causing the associated CloudWatch alarm to enter the ALARM state.

Investigation

Using AWS DevOps Agent, I investigated the issue and discovered that the instance's startup script intentionally launched busy-loop processes that continuously consumed CPU resources.

Findings

The investigation revealed:
  • CPU utilization remained close to 100%.
  • Multiple infinite-loop processes were consuming all available CPU resources.
  • The performance degradation was intentional as part of the challenge.

Resolution

I connected to the EC2 instance through AWS Systems Manager Session Manager and terminated the runaway processes.
After applying the fix:
  • CPU utilization returned to normal.
  • The CloudWatch alarm changed back to the OK state.
  • AWS DevOps Agent confirmed that the instance had recovered successfully.

Learning Outcome

This challenge demonstrated how CloudWatch metrics combined with AWS DevOps Agent can simplify infrastructure performance investigations.



Challenge 4 – Bad Deploy Detective

This challenge involved diagnosing an application that suddenly failed after deployment, even though the Lambda function code appeared to be correct.

Investigation

Using AWS DevOps Agent, I investigated the Lambda function, its execution role, and its interaction with the DynamoDB table.

Root Cause

The agent determined that the issue was not in the application code.
Instead, the Lambda execution role lacked the required IAM permission to perform the dynamodb:GetItem operation on the DynamoDB table.
As a result, every invocation failed with an AccessDeniedException.

Resolution

I updated the Lambda execution role by adding the required DynamoDB permission.
After updating the IAM policy:
  • The Lambda successfully retrieved data from DynamoDB.
  • AccessDeniedException errors disappeared.
  • The CloudWatch alarm returned to OK.
  • AWS DevOps Agent confirmed that the application was healthy.

Learning Outcome

This challenge highlighted the importance of IAM permissions in cloud applications and demonstrated that operational issues are not always caused by application code.



Challenge 5 – Build Your Own Scenario

The final challenge encouraged participants to design and troubleshoot their own failure scenario.

Scenario

I created a custom AWS Lambda function that intentionally exceeded its configured execution timeout.
Configuration:
  • Lambda timeout: 3 seconds
  • Function execution delay: 10 seconds
As expected, every invocation failed due to a timeout.

Investigation

AWS DevOps Agent analyzed the Lambda function and identified that the configured timeout was shorter than the function's execution duration.

Root Cause

The Lambda function was taking longer to execute than the configured timeout, resulting in a timeout on every invocation.

Resolution

I modified the function by reducing the execution delay from 10 seconds to 1 second while keeping the timeout configured at 3 seconds.
After redeploying the function:
  • The Lambda completed successfully.
  • No timeout errors occurred.
  • AWS DevOps Agent confirmed that the function was healthy.

Learning Outcome

This challenge demonstrated how execution time and configuration settings directly affect application reliability and reinforced the importance of understanding service limits.



Key Takeaways

Throughout this sprint, I gained practical experience in:
  • Investigating AWS infrastructure using AWS DevOps Agent
  • Troubleshooting AWS Lambda runtime errors
  • Diagnosing EC2 performance bottlenecks
  • Understanding the role of IAM permissions in cloud applications
  • Using CloudWatch alarms to monitor infrastructure health
  • Performing AI-assisted root-cause analysis using natural language
One of the biggest takeaways from this sprint was seeing how AI-powered operational assistants can significantly reduce the time required to identify infrastructure problems and recommend appropriate solutions.



Conclusion

The AWS DevOps Agent Builders Skill Sprint provided valuable hands-on experience with cloud operations, monitoring, and troubleshooting. Each challenge simulated a realistic production issue and demonstrated how AWS DevOps Agent can assist engineers in investigating incidents, understanding root causes, and validating recovery.
This sprint strengthened my understanding of AWS operational best practices and highlighted the growing role of AI in cloud management. I look forward to applying these concepts in future AWS projects and continuing my journey with the AWS community.



GitHub Repository




Author

Murali R
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article