HowTo use Kiro hooks to enforce IaC standards

Kiro hooks are actions that trigger at specific points in the agent&rsquo;s lifecycle: before or after a tool call, when a file is saved, when the agent stops, or when you manually fire them. A hook can either run a shell command or send a prompt back to the agent. They&rsquo;re how you get the agent to actually follow your team&rsquo;s rules, not just write code that compiles. When Kiro writes…