AWS Builder Center
Automating Enterprise Compliance with a custom Kiro Power: Building a To-Do App Under Governance

Automating Enterprise Compliance with a custom Kiro Power: Building a To-Do App Under Governance

Build a Kiro Power that automates enterprise compliance for regulated environments. This post walks through creating an Enterprise Governance Power with three patterns: (1) Knowledge-augmented standards enforcement via Bedrock KB + MCP; (2) Bidirectional document conversion between DOCX/PDF/XLSX and markdown, with branded templates; (3) AI assurance walkthrough that ingests regulatory frameworks and derives structured assessments with confidence ratings. Demonstrated end-to-end by building a To-Do app.

Principal AI Technologist

Introduction

Regulated enterprises face a persistent challenge: how do you enforce compliance standards during development without slowing teams down? Security guidelines live in SharePoint, architecture patterns in Confluence, and risk frameworks in PDF documents that nobody reads until audit time. Requirements arrive as Word documents that need to be translated into specifications an AI coding agent can act on. And when it's time for architectural review, your code and CDK infrastructure need to be turned back into properly formatted Solution Architecture Documents that review boards expect.
What if your IDE could automatically surface the right standard at the right time, convert requirements documents into AI-ready specifications, generate branded SADs from your code and infrastructure for architectural review boards, and walk you through regulatory assessments — all without leaving your editor?
In this post, we build an Enterprise Governance Power for Kiro from scratch, then demonstrate it by building a simple To-Do application while three integrated patterns enforce standards, manage documents, and assess compliance automatically.
> Want to skip ahead? The complete Power — including CloudFormation template, MCP configuration, scripts, agents, hooks, and sample content — is available on GitHub at  aws-samples/sample-kiro-enterprise-governance . You can clone it and jump straight to  Part 2: Deploying and Using the Power . The rest of Part 1 walks through building it from scratch so you understand each component.

Why "Ironbark"?

The  Ironbark  is a group of Australian eucalyptus species with dense, fire-resistant bark that builds up over decades — tough enough to withstand bushfire, but never so rigid it stops growth underneath. It's a fitting metaphor for enterprise governance tooling.

The AI-Optimised Development Lifecycle

Many regulated organisations are on a journey toward a fully  AI-driven development lifecycle (AI-DLC)  where AI agents handle end-to-end software delivery autonomously. But for most enterprises today, the practical path is incremental: optimise individual steps of the development lifecycle — requirements gathering, design, compliance assessment, code generation, documentation — using AI, while keeping humans in the loop for governance decisions.
We call this an AI-optimised DLC — distinct from a full AI-DLC. Where AI-DLC implies autonomous end-to-end delivery, an AI-optimised DLC uses AI to accelerate each phase while humans retain control at governance decision points. It's the precursor: build confidence in AI-assisted compliance today, graduate to full autonomy when your organisation is ready.
That's exactly what this Power demonstrates. Each pattern targets a specific DLC phase:
  • Pattern 1 (Standards Enforcement) → Design and implementation
  • Pattern 2 (Document Pipeline) → Documentation and delivery
  • Pattern 3 (AI Assurance) → Requirements and compliance planning

What We're Building

The Enterprise Governance Power integrates these three patterns:
  1. Knowledge-Augmented Development Standards — A Bedrock Knowledge Base (backed by S3) stores your org's standards. The AWS MCP Server provides AWS best practices. Both are queried automatically when you edit code. This could be extended to Confluence or Sharepoint (currently in preview for Bedrock KBs)
  1. Bidirectional Document Conversion — Convert requirements DOCX/PDF/XLSX to markdown for Kiro, then generate branded SAD documents back as DOCX using your templates. Important for manual requirements and design review boards in regulated industries.
  1. AI Assurance Walkthrough — Drop a regulatory framework into S3, and an agent derives structured assessments with confidence ratings that bind the other patterns to your project's risk profile. The Power has a fictional Sample AI Assurance Framework for demonstration; in production, replace it with your own (e.g.,  FAIRA  or the  NSW AI Assurance Framework ).

Architecture



Prerequisites

  • AWS account with Bedrock model access enabled. This walkthrough has been done in ap-southeast-2
  • Linux or macOS for shell scripting
  • Python 3.9+
  • AWS CLI v2.32.0+ configured (run  aws login  to authenticate)
  •  uv  installed (provides  uvx  for running MCP servers)
  • Kiro IDE
  • You will need two folders: one for your power, one for the test AI To-Do app.

Part 1: Building the Power

Every Kiro Power follows the  official Power structure . The key file is  POWER.md  — it contains frontmatter (name, keywords, description) that tells Kiro when to activate, plus onboarding instructions and steering file mappings.

Power Directory Structure

my-power/
├── POWER.md # Required: frontmatter + onboarding + steering mappings
├── mcp.json # MCP server configuration
└── steering/ # Workflow-specific guidance files (in .kiro/steering/)
The fastest way to create a Kiro Power is to use Kiro to build it. Below we show the prompts we used, followed by the artifacts each prompt produces.

Design Decisions

Before writing any prompts, we made these technology choices. Each subsequent prompt references the relevant decisions so Kiro uses the right libraries and patterns:
Decision
Choice
Why
Document conversion
 markitdown 
Single library handles DOCX, PDF, XLSX; maintained by Microsoft
DOCX generation
 python-docx  with templates
 Document(template_path)  preserves org branding without custom styling code
KB discovery
Tag  mcp-multirag-kb=true 
Standard mechanism for the Bedrock KB MCP server
Dual MCP
Bedrock KB + AWS MCP Server
Org standards + AWS best practices = comprehensive guidance
Framework storage
S3 (not local)
Centralised; multiple team members can share frameworks
SAD upload
S3  outputs/  prefix
Centralised artifact storage; accessible to stakeholders
Native formats in S3
DOCX/PDF/XLSX
Enterprises don't use markdown for documentation; convert at runtime only

Step 1: Create POWER.md and Scaffold the Structure

Open a new Kiro workspace and paste this prompt:
> Sample prompt — adapt to your domain:
Create a Kiro Power called "ironbark-power" following the official
Kiro Power format (https://kiro.dev/docs/powers/create/). Create:

1. POWER.md with frontmatter:
- name: "ironbark-power"
- displayName: "Ironbark Enterprise Governance"
- description: "Automate compliance workflows for regulated
enterprises — standards enforcement via Bedrock KB,
bidirectional document conversion, and jurisdiction-agnostic
AI assurance walkthrough"
- keywords: ["compliance", "governance", "standards", "assurance",
"framework", "SAD", "architecture", "document", "docx", "pdf",
"bedrock", "knowledge-base", "regulated", "enterprise"]
- author: "AWS"
Include onboarding steps (validate Python, AWS CLI, deploy
CloudFormation, seed S3, sync KB, add hooks) and steering file
mappings. Include a Usage section showing sample prompts for
each pattern.

2. mcp.json with two MCP servers:
- awslabs.bedrock-kb-retrieval-mcp-server (ap-southeast-2, tag
mcp-multirag-kb=true)
- aws-mcp via mcp-proxy-for-aws (endpoint
https://aws-mcp.us-east-1.api.aws/mcp, metadata
AWS_REGION=ap-southeast-2)

3. steering/ with three files:
- development-standards.md (inclusion: auto)
- document-pipeline.md (inclusion: manual)
- ai-assurance.md (inclusion: manual)

4. .kiro/hooks/ with three hooks (use .kiro.hook extension):
- compliance-gate.kiro.hook (fileEdited, askAgent)
- framework-ingest.kiro.hook (userTriggered, askAgent)
- ai-workload-detection.kiro.hook (userTriggered, askAgent)

5. agents/ directory with three agent definitions:
- template-converter.md (bidirectional document conversion)
- ai-assurance-walkthrough.md (framework ingestion)
- sad-generator.md (SAD generation from code and standards)

6. scripts/ directory for Python utilities

7. content/ directory with knowledge/, frameworks/, templates/,
samples/ subdirectories

8. SETUP.md with step-by-step deployment instructions
9. README.md with project overview and usage guide

Create all files.
This produces the  POWER.md  (the key file Kiro reads):
---
name: "ironbark-power"
displayName: "Ironbark Enterprise Governance"
description: "Automate compliance workflows for regulated enterprises — standards enforcement via Bedrock KB, bidirectional document conversion, and jurisdiction-agnostic AI assurance walkthrough"
keywords: ["compliance", "governance", "standards", "assurance", "framework", "SAD", "architecture", "document", "docx", "pdf", "bedrock", "knowledge-base", "regulated", "enterprise"]
author: "AWS"
---
And the  mcp.json  (at the project root):
{
"mcpServers": {
"awslabs.bedrock-kb-retrieval-mcp-server": {
"command": "uvx",
"args": ["awslabs.bedrock-kb-retrieval-mcp-server@1.0.22"],
"env": {
"AWS_REGION": "ap-southeast-2",
"BEDROCK_KB_TAG_KEY": "mcp-multirag-kb",
"BEDROCK_KB_TAG_VALUE": "true"
}
},
"aws-mcp": {
"command": "uvx",
"timeout": 100000,
"args": [
"mcp-proxy-for-aws@1.5.0",
"https://aws-mcp.us-east-1.api.aws/mcp",
"--metadata", "AWS_REGION=ap-southeast-2"
]
}
}
}
> Note: The AWS MCP Server endpoint is in us-east-1, but the  AWS_REGION  metadata parameter tells it to operate on resources in ap-southeast-2. The endpoint region and operations region are independent — see the  AWS MCP Server setup guide  for details.
And hooks use the  .kiro.hook  extension (saved in  .kiro/hooks/ ):
{
"enabled": true,
"name": "Compliance Gate",
"description": "Queries KB for org standards on source code edits",
"version": "1",
"when": {
"type": "fileEdited",
"patterns": ["*.py", "*.ts", "*.tsx", "*.js", "*.jsx", "*.java"]
},
"then": {
"type": "askAgent",
"prompt": "Query Bedrock KB and AWS MCP Server for applicable standards..."
}
}
Why two MCP servers? The Bedrock KB holds your organisation's specific standards. The AWS MCP Server provides general AWS service best practices that complement your org standards.

Step 2: Create the Steering Files

> Sample prompt:
Create the three steering files for the Enterprise Governance Power.
Per the design decisions, use the dual MCP approach (Bedrock KB for
org standards + AWS MCP Server for AWS best practices) and
reference markitdown/python-docx for document conversion:

1. steering/development-standards.md (inclusion: auto) — Instructs
Kiro to query BOTH the Bedrock KB MCP for org-specific standards
AND the AWS MCP Server for AWS best practices before
providing code suggestions. Include a file-type-to-standard
mapping table (.py → Python standards, .ts → TypeScript, etc.)

2. steering/document-pipeline.md (inclusion: manual) — Describes
the bidirectional document conversion workflow: how to convert
DOCX/PDF/XLSX to markdown using markitdown, how to convert
markdown back to branded DOCX using python-docx with templates.

3. steering/ai-assurance.md (inclusion: manual) — Describes the
framework ingestion workflow, confidence rating methodology
(HIGH/MEDIUM/LOW), output file structures (metadata.yaml,
framework.md, assessment doc, context file).
Key design decision:  development-standards.md  uses  inclusion: auto  so it's always active during coding. The other two use  inclusion: manual  since they're only needed during specific workflows (document conversion or assurance walkthrough).

Step 3: Define the Custom Agents

> Sample prompt:
Create three custom agent definitions. Per the design decisions,
frameworks and templates are stored in S3 (centralised), documents
stay in native formats (DOCX/PDF) and are converted at runtime only:

1. agents/template-converter.md — Orchestrates bidirectional
document conversion. Accepts parameters: source (file path or
S3 URI), output_format (markdown or docx), template (for DOCX
output), bucket, project. Workflow: download from S3 if needed →
run convert-to-md.py or convert-md-to-docx.py → upload to S3
if bucket/project provided.

2. agents/ai-assurance-walkthrough.md — Ingests regulatory
frameworks from S3. Accepts: bucket, framework_id, project_name.
Workflow: sync-frameworks.py to download framework from
frameworks/\<id\>/ → fetch-template.py with --prefix samples to
download requirements → convert-to-md.py on both → derive fields
with HIGH/MEDIUM/LOW confidence → present to user for
confirmation → on confirm, generate assessment doc at
docs/ai-assurance/\<project\>-assessment.md and context file at
.kiro/context/ai-assurance-context.md with inclusion: always.

3. agents/sad-generator.md — Generates a Solution Architecture
Document. Queries Bedrock KB for applicable standards, produces
SAD markdown matching the template structure. Hands off to
template-converter for DOCX conversion and S3 upload to
outputs/\<project\>/sad.docx.
Agents define multi-step workflows that Kiro executes. The  ai-assurance-walkthrough  is the most complex — it downloads from S3, converts formats, derives fields with confidence ratings, prompts for user confirmation, then generates two output files.

Step 4: Create the Hooks

> Sample prompt:
Create three hook definitions. Per the design decisions, the
compliance gate queries both MCP servers (dual MCP approach):

1. hooks/compliance-gate.kiro.hook — Triggers on fileEdited for source
code patterns (*.py, *.ts, *.js, *.java, *.go, *.rs, *.cs).
Action: askAgent that queries both Bedrock KB for org standards
and AWS MCP Server for AWS best practices. If no standards
found, complete silently.

2. hooks/framework-ingest.kiro.hook — Triggers on userTriggered.
Action: askAgent that prompts the user for bucket, framework ID,
and project name, then invokes the ai-assurance-walkthrough
agent workflow.

3. hooks/ai-workload-detection.kiro.hook — Triggers on userTriggered.
Action: askAgent that scans spec requirements for AI/ML
indicators, and if found, runs an interactive risk
classification questionnaire before generating the assessment
and context files.
Hook design: The  compliance-gate  fires automatically (no user action needed). The other two are  userTriggered  —  framework-ingest  for processing a specific framework from S3, and  ai-workload-detection  for scanning your spec to determine if an AI assurance assessment is needed.

Step 5: Build the Supporting Scripts

> Sample prompt:
Create four Python scripts in scripts/, using the design decisions
from above (markitdown for inbound conversion, python-docx with
Document(template_path) for DOCX generation, boto3 for S3 operations):

1. convert-to-md.py — Uses the markitdown library to convert DOCX,
PDF, XLSX to markdown. Args: --input, --output. Error handling
for missing files and unsupported formats.

2. convert-md-to-docx.py — Uses python-docx with
Document(template_path) to convert markdown to branded DOCX.
Maps headings, paragraphs, tables, lists, and code blocks.
Clears template placeholder content before inserting. Handles
python-docx quirks (latent styles, style validation).
Args: --input, --output, --template, --upload-s3, --project.
Uploads to s3://\<bucket\>/outputs/\<project\>/\<filename\>.docx if
S3 args provided.

3. sync-frameworks.py — Uses boto3 to download all files from
s3://\<bucket\>/frameworks/\<id\>/ to a local directory. Args:
--bucket, --framework-id, --output-dir (default: ./frameworks).
Lists available framework IDs if --framework-id omitted.

4. fetch-template.py — Uses boto3 to download a single file from
any S3 prefix. Args: --bucket, --prefix (default: templates),
--template (filename), --output-dir (default: ./tmp). Validates
file exists via head_object before downloading. Use --prefix
to target different folders (e.g., --prefix samples for
requirements docs, --prefix templates for DOCX templates).

All scripts: Python 3.9+, argparse with --help, exit 0 on success,
non-zero on failure with stderr messages. No stubs.

Also create a requirements.txt with pinned versions:
markitdown[docx,pdf,xlsx], python-docx, boto3, markdown.

Step 6: Provision Infrastructure

> Sample prompt:
Create a CloudFormation template (cloudformation.yaml) that deploys
in ap-southeast-2. Per the design decisions, tag the KB with
mcp-multirag-kb=true for discovery, and use S3 for centralised
framework/template storage:

- S3 bucket with versioning (auto-generated unique name)
- Bedrock Knowledge Base with S3 datasource on knowledge/ prefix
- Tag the KB with mcp-multirag-kb=true
- S3 Vectors bucket and index for vector storage
- IAM roles for KB to read S3, write to S3 Vectors, and invoke
embedding model
- Outputs: ContentBucketName, VectorBucketArn, KnowledgeBaseId,
KnowledgeBaseArn

Also create seed-s3.sh that accepts a bucket name and uploads
content/ subdirectories to the correct S3 prefixes (knowledge/,
frameworks/, templates/, samples/).
Alternatively, use the working CloudFormation template from the  aws-samples/sample-kiro-enterprise-governance  repository — it provisions the S3 bucket, S3 Vectors index, Bedrock Knowledge Base with FM parser, and all required IAM roles.

Step 7: Create the Content Directory Structure

Create the  content/  directory structure that will hold your enterprise documents:
mkdir -p content/{knowledge,frameworks/SAMPLE-AIAF,templates,samples}
content/
├── knowledge/ # Org standards and policies (indexed by Bedrock KB)
├── frameworks/
│ └── SAMPLE-AIAF/ # One subdirectory per framework ID
├── templates/ # Branded DOCX templates for output generation
└── samples/ # Sample requirements documents for demo/testing
Each subdirectory maps to an S3 prefix when uploaded via  seed-s3.sh . You'll add your actual documents in Part 2 when deploying and testing the Power.
> Important: Documents must be in their native enterprise formats (DOCX, PDF, XLSX) — not markdown. The Power converts them at runtime. This meets enterprises where they are: standards live in Word, policies in PDF, and frameworks in structured documents that review boards already use.
> Real-world frameworks: For production use, replace the sample framework with your organisation's actual governance framework. Examples include  FAIRA  (Australia's Voluntary AI Safety Standard), the  NSW AI Assurance Framework , or the  NIST AI RMF . The Power is jurisdiction-agnostic — any framework in PDF, XLSX, or DOCX format can be ingested.

Step 8: Package for Distribution

Once your Power is built and tested, package it as a zip file that others can install into any blank workspace:
> Sample prompt:
Create a shell script at scripts/package-power.sh that packages the
Power into a distributable zip file. Include only the runtime files
needed by end users: POWER.md, mcp.json, steering/, agents/,
.kiro/hooks/, scripts/ (Python scripts and seed-s3.sh only),
content/, cloudformation.yaml, SETUP.md, README.md, and
requirements.txt. Exclude tests, specs, blog, and git history.
Output to dist/ironbark-power.zip.
The resulting script, when run, produces  dist/ironbark-power.zip  — a self-contained package that anyone can unzip into a fresh workspace.

Building Your Own Power — Summary

Follow the  official Kiro Power creation guide . The key steps: create  POWER.md  with frontmatter → configure MCP servers → write steering files → define agents and hooks → build scripts → provision infrastructure → add content → package for distribution.

Part 2: Deploying and Using the Power

Now let's deploy what we just built and see it in action. We'll build a To-Do app with full governance using the Power's three patterns.

Deploy Infrastructure

Deploy the CloudFormation stack to provision the S3 bucket and Bedrock Knowledge Base:
aws cloudformation deploy \
--template-file cloudformation.yaml \
--stack-name ironbark-power \
--capabilities CAPABILITY_NAMED_IAM \
--region ap-southeast-2

BUCKET=$(aws cloudformation describe-stacks \
--stack-name ironbark-power \
--region ap-southeast-2 \
--query 'Stacks[0].Outputs[?OutputKey==`ContentBucketName`].OutputValue' \
--output text)

Add Your Content

Before seeding S3, add your enterprise documents to the  content/  directory. See  Appendix B  for the prompts we used to generate each document, or use your organisation's existing standards and templates.

Seed Content and Sync the Knowledge Base

Upload the documents to S3 and trigger KB ingestion:
./scripts/seed-s3.sh $BUCKET
Then sync the Knowledge Base so documents are indexed:
KB_ID=$(aws cloudformation describe-stacks \
--stack-name ironbark-power \
--region ap-southeast-2 \
--query 'Stacks[0].Outputs[?OutputKey==`KnowledgeBaseId`].OutputValue' \
--output text)

DS_ID=$(aws bedrock-agent list-data-sources \
--knowledge-base-id $KB_ID \
--region ap-southeast-2 \
--query 'dataSourceSummaries[0].dataSourceId' \
--output text)

aws bedrock-agent start-ingestion-job \
--knowledge-base-id $KB_ID \
--data-source-id $DS_ID \
--region ap-southeast-2
Wait 1-3 minutes for ingestion to complete.

Activate the Power in Kiro

Create a new folder for your To-Do app project and unpack the Power into it:
mkdir ~/todo-app && cd ~/todo-app
unzip /path/to/dist/ironbark-power.zip -d .
Set up the Python environment and install dependencies:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Open this folder in a new Kiro window (File → Open Folder → select  ~/todo-app ). Kiro detects  POWER.md  and activates the Power automatically — MCP servers connect and hooks register. Verify in the sidebar:
  • Agent Hooks → Compliance Gate, Framework Ingest, AI Workload Detection
  • MCP Servers → both servers connected
> Troubleshooting: MCP server conflicts. If the Bedrock KB MCP server fails to query (returns empty or 403), check whether you have an existing  awslabs.bedrock-kb-retrieval-mcp-server  configured at the user level ( ~/.kiro/settings/mcp.json ). Duplicate instances of the same MCP server conflict — disable the external one, then re-activate the Power (Command Palette → search "Activate" or trigger a no-op edit to  mcp.json  to force reconnection).

Demo: AI Assurance Walkthrough

Before writing any code, we establish the project's risk profile using the Sample AI Assurance Framework.
> Note: These are sample prompts — phrase them however suits you. The key is to reference the Power's agents by name so Kiro uses the correct workflow. Substitute <BUCKET> for your S3 Bucket created earlier.
Use the ai-assurance-walkthrough agent to assess the todo-app project.
Download the SAMPLE-AIAF framework from s3://\<BUCKET\>/frameworks/SAMPLE-AIAF/
and the requirements from s3://\<BUCKET\>/samples/todo-app-requirements.docx.
Convert both to markdown, derive structured assessment fields with confidence
ratings against the requirements, and present them for my confirmation.
The project name is "todo-app".
Behind the scenes, the agent:
  1. Downloads the framework from  s3://\<bucket\>/frameworks/SAMPLE-AIAF/ 
  1. Downloads the requirements document from  s3://\<bucket\>/samples/todo-app-requirements.docx 
  1. Converts both to markdown using  convert-to-md.py 
  1. Derives structured fields with confidence ratings against the requirements
  1. Presents them for your confirmation
fields:
- name: "risk_classification_levels"
value: "Low, Medium, High, Very High"
confidence: HIGH
source_section: "Section 3 — Risk Classification"
- name: "audit_frequency"
value: "Annual for Medium risk, bi-annual for High risk"
confidence: LOW
source_section: "Section 7 — Ongoing Monitoring and Review"
After confirming, the agent generates:
  •  docs/ai-assurance/todo-app-assessment.md  — The assessment document
  •  .kiro/context/ai-assurance-context.md  — Context file (inclusion: always) that binds Patterns 1 and 2 to the risk profile

Demo: Convert Requirements to Spec

Since the requirements document was already downloaded during the assurance walkthrough, just ask Kiro to create a spec from it:
Create a Kiro spec from the todo-app requirements markdown.
Behind the scenes, Kiro reads the converted markdown and generates a full spec (requirements → design → tasks) from the content.

Demo: Build with Standards Enforcement

With the spec created, generate the design and implementation tasks:
Generate the design and tasks for the todo-app spec.
Kiro produces a design document and a set of implementation tasks. Start working through the tasks — the  compliance-gate  hook fires automatically on every file save. It queries:
  1. Bedrock KB → Your org's Python/TypeScript standards from S3
  1. AWS MCP Server → AWS Lambda, DynamoDB, API Gateway best practices
For example, editing a Lambda handler surfaces:
  • Org standard: "Use structured logging (JSON format) for all services"
  • AWS best practice: "Set Lambda memory based on profiling; CPU scales linearly with memory"
The guidance is surfaced in the hook output panel (double-click the Compliance Gate hook in the Agent Hooks sidebar to view it) — it's advisory, not blocking. The developer sees the standards and best practices, then decides whether to act on them. If no applicable standards are found, the hook completes silently without output.
This is by design: it matches the AI-optimised DLC philosophy where humans retain control at governance decision points. If you wanted enforcement rather than guidance, you could change the hook to a  preToolUse  type on write operations that blocks until standards are addressed — but that's a different pattern for teams with higher compliance maturity.

Demo: Generate SAD and Convert to DOCX (Pattern 2)

After development, ask Kiro to generate the Solution Architecture Document using the dedicated SAD generator agent:
Use the sad-generator agent to create a Solution Architecture Document
for the todo-app project. Use bucket \<BUCKET\> for templates and upload.
Behind the scenes, the sad-generator agent:
  1. Queries the Bedrock KB for applicable standards and policies
  1. Reads the SAD template structure from S3
  1. Generates the SAD as markdown matching the template sections
  1. Prompts you to convert to DOCX via the template-converter agent
Then confirm the DOCX conversion:
Use the template-converter agent to convert docs/todo-app-sad.md to
DOCX using the SAD template from s3://\<BUCKET\>/templates/sad.docx.
Upload to S3 for project todo-app.
The generated DOCX uses your organisation's branded template and is uploaded to  s3://\<BUCKET\>/outputs/todo-app/sad.docx .
> Architecture diagrams: You can extend this Power to auto-generate validated AWS architecture diagrams from your infrastructure code using the  deploy-on-aws plugin . This would add a step between querying standards and generating the SAD markdown, producing a draw.io diagram that gets referenced in the document.

Results

After completing the demo flow, we have:
  • A To-Do app built with continuous standards enforcement
  • An AI assurance assessment documenting compliance posture
  • A branded SAD document in S3 ready for stakeholders
  • A context file ensuring all future development on this project respects the risk profile

Conclusion

The Enterprise Governance Power demonstrates that compliance automation doesn't require heavyweight tooling or separate workflows. By integrating standards enforcement, document management, and regulatory assessment directly into the IDE, teams can maintain compliance as a natural part of development rather than an afterthought.
For regulated enterprises working toward a full  AI-DLC , this Power represents a practical intermediate step — AI-optimised phases with human oversight at governance decision points. As confidence grows, extend the same patterns with tighter automation and fewer manual gates.

Resources

Appendix: Content Creation Prompts

Use these prompts with Claude, Quip Desktop, or any AI document tool to generate the sample content needed for the demo. Adapt them to your domain.
1. Enterprise Build Standards (save as  content/knowledge/ACME_Enterprise_Build_Standards.docx ):
Create a fictional enterprise build standards document for "ACME Corp"
as a DOCX file. Include sections for: coding standards (Python,
TypeScript, Java), security requirements (authentication, encryption,
secrets management), API design standards (REST conventions, pagination,
error handling), logging and observability (structured JSON logging,
correlation IDs), and deployment standards (CI/CD, infrastructure as
code, environment promotion). Use specific, enforceable rules — not
vague guidelines. Example: "All passwords must be hashed using bcrypt
with a minimum cost factor of 12."
2. Cloud Software Policies (save as  content/knowledge/Enterprise_Cloud_Software_Policies.pdf ):
Create a fictional enterprise cloud software policy document for
"ACME Corp" as a PDF. Include numbered policy sections covering:
data classification and handling (§1), encryption at rest and in
transit (§2), IAM and least privilege (§3), network security and
VPC design (§4), logging and audit requirements (§5), disaster
recovery and backup (§6), and approved AWS services list (§7).
Each section should have specific, auditable requirements that a
developer can reference by section number (e.g., "Per Policy §2.3,
all S3 buckets must have SSE-S3 or SSE-KMS enabled").
3. Sample AI Assurance Framework (save as  content/frameworks/SAMPLE-AIAF/sample-ai-assurance-framework-v1.0.docx ):
Create a fictional AI assurance framework document (v1.0) as a DOCX
file. Model it on real frameworks like Australia's FAIRA or the NSW
AI Assurance Framework. Include sections for: purpose and scope,
risk classification levels (Low/Medium/High/Very High with criteria),
mandatory assessments per risk level, transparency and explainability
requirements, data governance, human oversight requirements, bias and
fairness testing, ongoing monitoring and review cadence, and incident
response. Make it specific enough that structured fields can be
derived from each section.
4. SAD Template (save as  content/templates/sad.docx ):
Create a Solution Architecture Document (SAD) template as a DOCX file
with organisation branding (logo placeholder, header/footer, styles).
Include these section headings with placeholder guidance text:
Executive Summary, Architecture Overview (with image placeholder),
Component Descriptions, Deployment Topology, Security Considerations,
Compliance and Governance, Non-Functional Requirements, and Appendices.
Use heading styles (Heading 1, Heading 2) consistently so python-docx
can map content to the correct sections.
5. To-Do App Requirements (save as  content/samples/todo-app-requirements.docx ):
Create an ACME Enterprise requirements document for an "AI-Augmented Todo Task
Management Application" as a DOCX file. The app uses AWS Lambda
(Node.js), API Gateway, DynamoDB, and Amazon Bedrock (Claude) for
an AI-assisted priority suggestion feature. Include:

Functional requirements:
- CRUD operations for tasks (title, description, due date, status)
- AI priority suggestion: when creating/editing a task, the system
calls Amazon Bedrock (Claude) to analyse the description and
suggest a priority (Low/Medium/High). The suggestion is advisory
only — the user always has final control.
- One-click accept or ignore of AI suggestion
- Graceful degradation: app works fully without AI if Bedrock is
unavailable
- Frontend: React with TypeScript, responsive design

AI governance requirements:
- AI model accessed via Amazon Bedrock approved inference profile only
- AI suggestions advisory only — no automated actions without user
confirmation
- AI invocations logged (timestamp, user, suggested priority) for
audit; full prompt/response NOT logged
- AI feature has a kill switch — can be disabled via config without
redeployment
- Task descriptions sent to AI must not contain PII — validate
before sending
- Human-in-the-loop: users always make the final priority decision

Non-functional requirements:
- API response \<500ms p95, AI suggestion \<3 seconds
- 99.9% availability, 100 concurrent users
- All data encrypted at rest (AES-256) and in transit (TLS 1.2+)
- Least privilege IAM, input validation, API throttling

Technology constraints:
- AWS CDK v2 (TypeScript) for infrastructure
- Node.js 18+ on Lambda, React 18+ frontend
- DynamoDB for storage, S3 + CloudFront for hosting

Include a note that AI assurance assessment is pending and risk
classification is TBD (requires AI Assurance Walkthrough). Make it
realistic enough to generate a full Kiro spec from.
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