Lesson 2 of 2 AI-Assisted Operations

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.

Spec-driven development in Kiro. A natural language request becomes a specification of requirements, a design and implementation tasks, which the engineer reviews and edits before Kiro implements the tasks, so an incorrect operational change is caught in the plan rather than in production.
The request is illustrative.

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.

Match the pairs

Kiro features

Exam skills 3.2.1

Match each Kiro feature with what it does.

Log in to try this activity Interactive activities are free with an account.

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.

AWS DevOps Agent
Primary purposeInvestigate and prevent operational incidents
Where it runsAWS-managed agent with a web app and integrations
Typical triggerAlarm, ticket or operator request
OutputRoot cause analysis, mitigation plans, prevention recommendations
Kiro
Primary purposeBuild and change code, scripts and infrastructure
Where it runsIDE and CLI on the engineer's machine
Typical triggerEngineer's prompt or a file-event hook
OutputSpecs, code, templates, runbooks, commands
Select all that apply

Using Kiro safely

Exam skills 3.2.1 · 4.1.1

Identify safe practices when Kiro works with AWS resources.

Log in to try this activity Interactive activities are free with an account.
Worked example

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.

Check yourself

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.