Automating Operations with Kiro
This lesson explains Kiro, AWS's agentic development environment available as an IDE and the Kiro CLI, which the SOA-C03 guide lists as a tool for analysing problems and automating remediation.
Learning outcomes
After completing this lesson, you will be able to:
- Describe spec-driven development.
- Use steering files, hooks and MCP servers.
- Use Kiro safely with least-privilege credentials.
Spec-driven development
Kiro turns a natural language request into a specification before it writes code. A spec contains requirements, a design and a list of implementation tasks, which the user reviews and edits, and Kiro then implements the tasks. For operations work this suits tasks such as "create a runbook that rotates logs and reports free space", "write a CloudFormation template for an alarm and dashboard for each service" or "implement the mitigation plan from this DevOps Agent investigation", where a reviewed plan reduces the risk of an incorrect change.
The following diagram shows the stages of a spec.

Steering, hooks and MCP
Steering files are Markdown documents in the project, such as .kiro/steering/, that tell Kiro the team's conventions, for example "all infrastructure is CloudFormation YAML; every alarm notifies the ops-alerts topic". Hooks run agent actions automatically on events such as saving a file, for instance validating a template with cfn-lint whenever it changes. Kiro connects to tools and data through MCP servers; AWS provides MCP servers and packaged powers for services such as CloudFormation, CDK, CloudWatch and AWS Security Agent, which let Kiro read real resource state and documentation while it works.
Kiro features
Using Kiro safely
Kiro acts with the AWS credentials of the user or profile it runs under, so the usual IAM rules apply: use least-privilege roles, prefer read-only roles for analysis, and review every proposed command and code change before it reaches production. Generated infrastructure code should still pass through the team's normal review and deployment process. The following table compares Kiro and DevOps Agent, which are often used together.
Using Kiro safely
From mitigation plan to runbook
A DevOps Agent prevention recommendation says that EBS volumes on a batch fleet regularly fill up and that no alarm exists. An engineer opens Kiro with the team's steering files, pastes the recommendation and asks for an implementation. Kiro produces a spec: a CloudWatch agent configuration change, a Metrics Insights alarm at 85% disk use, an EventBridge rule, and an Automation runbook that extends the volume with Elastic Volumes and grows the file system. The engineer adjusts the threshold in the requirements, Kiro generates the CloudFormation template and runbook, a hook runs cfn-lint, and the change goes through the normal pull request review before deployment.
Whose AWS permissions does Kiro use when it runs commands?
Show answer
The caller's credentials, so apply least privilege and review its changes.
Exam Tips
Remember for the exam
- Kiro is an agentic IDE and CLI that works from reviewed specifications.
- Steering files carry team conventions; hooks automate checks; MCP servers connect tools and AWS data.
- Kiro uses the caller's AWS credentials, so apply least privilege and review changes.
- DevOps Agent diagnoses incidents; Kiro implements code and infrastructure changes.