Skip to content

ASUCICREPO/Repository-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

68 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

[INSERT_PROJECT_NAME]

[INSERT_PROJECT_DESCRIPTION - 2-3 sentences describing what the project does, who it's for, and the key problem it solves]


πŸš€ New to this template? Start with the GETTING_STARTED.md guide for setup instructions and best practices.


Disclaimers

Customers are responsible for making their own independent assessment of the information in this document. This document:

(a) is for informational purposes only,

(b) references AWS product offerings and practices, which are subject to change without notice,

(c) does not create any commitments or assurances from AWS and its affiliates, suppliers or licensors. AWS products or services are provided "as is" without warranties, representations, or conditions of any kind, whether express or implied. The responsibilities and liabilities of AWS to its customers are controlled by AWS agreements, and this document is not part of, nor does it modify, any agreement between AWS and its customers, and

(d) is not to be considered a recommendation or viewpoint of AWS.

Additionally, you are solely responsible for testing, security and optimizing all code and assets on GitHub repo, and all such code and assets should be considered:

(a) as-is and without warranties or representations of any kind,

(b) not suitable for production environments, or on production or other critical data, and

(c) to include shortcuts in order to support rapid prototyping such as, but not limited to, relaxed authentication and authorization and a lack of strict adherence to security best practices.

All work produced is open source. More information can be found in the GitHub repo.


Visual Demo

User Interface Demo

[PLACEHOLDER] Please provide a GIF or screenshot of the application interface and save it as docs/media/user-interface.gif


Table of Contents

Index Description
Getting Started Guide Setup instructions and best practices for this template
High Level Architecture High level overview illustrating component interactions
Deployment Guide How to deploy the project
User Guide End-user instructions and walkthrough
API Documentation Documentation on the APIs the project uses
Directories General project directory structure
Modification Guide Guide for developers extending the project
Troubleshooting Common issues and solutions
Removing Commit History Steps to clean commit history when using as a template
Credits Contributors and acknowledgments
License License information

High Level Architecture

[INSERT_ARCHITECTURE_OVERVIEW - Brief paragraph explaining the architecture, how components interact, and the overall system design]

Architecture Diagram

[PLACEHOLDER] Please create and provide an architecture diagram showing:

  • All major components/services
  • Data flow between components
  • User interaction points
  • External services/APIs

Save the diagram as docs/media/architecture.png (or .jpeg/.jpg)

For a detailed explanation of the architecture and architectural decisions, see the Architecture Deep Dive.


Deployment Guide

For complete deployment instructions, see the Deployment Guide.

Quick Start:

  1. [INSERT_QUICK_START_STEP_1]
  2. [INSERT_QUICK_START_STEP_2]
  3. [INSERT_QUICK_START_STEP_3]

User Guide

For detailed usage instructions with screenshots, see the User Guide.


API Documentation

For complete API reference, see the API Documentation.


Modification Guide

For developers looking to extend or modify this project, see the Modification Guide.


Directories

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ bin/
β”‚   β”‚   └── backend.ts
β”‚   β”œβ”€β”€ lambda/
β”‚   β”‚   └── [INSERT_LAMBDA_FUNCTIONS]
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   └── backend-stack.ts
β”‚   β”œβ”€β”€ agent/
β”‚   β”‚   └── [INSERT_AGENT_FILES]
β”‚   β”œβ”€β”€ cdk.json
β”‚   β”œβ”€β”€ package.json
β”‚   └── tsconfig.json
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ layout.tsx
β”‚   β”‚   β”œβ”€β”€ page.tsx
β”‚   β”‚   └── globals.css
β”‚   β”œβ”€β”€ public/
β”‚   └── package.json
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ architectureDeepDive.md
β”‚   β”œβ”€β”€ deploymentGuide.md
β”‚   β”œβ”€β”€ userGuide.md
β”‚   β”œβ”€β”€ APIDoc.md
β”‚   β”œβ”€β”€ modificationGuide.md
β”‚   └── media/
β”‚       β”œβ”€β”€ architecture.png
β”‚       └── user-interface.gif
β”œβ”€β”€ LICENSE
└── README.md

Directory Explanations:

  1. backend/ - Contains all backend infrastructure and serverless functions

    • bin/ - CDK app entry point
    • lambda/ - AWS Lambda function handlers
    • lib/ - CDK stack definitions
    • agent/ - [INSERT_AGENT_DESCRIPTION]
  2. frontend/ - Next.js frontend application

    • app/ - Next.js App Router pages and layouts
    • public/ - Static assets
  3. docs/ - Project documentation

    • media/ - Images, diagrams, and GIFs for documentation

Troubleshooting

MCP Servers Not Connecting

Issue: MCP servers show "Disconnected" status in Kiro

Solutions:

  1. Verify uv and uvx are installed: uvx --version
  2. Check AWS credentials: aws sts get-caller-identity
  3. Update AWS profile in .kiro/settings/mcp.json
  4. Restart Kiro or reconnect servers from MCP Server view

Spec Generation Fails

Issue: Kiro fails to create specification documents

Solutions:

  1. Ensure you're in Autopilot mode (required for subagent delegation)
  2. Verify scope documents are readable and well-formatted
  3. Check that .kiro/agents/cic-project-specs.md exists
  4. Try with a simpler project description first

Subagent Not Delegating

Issue: Kiro implements code directly instead of delegating to subagents

Solutions:

  1. Confirm you're in Autopilot mode
  2. Use clear domain keywords (backend, frontend, deploy, security)
  3. Explicitly request: "Use cic-backend agent to implement this"
  4. Check .kiro/steering/main-agent-orchestration.md is present

CDK Deployment Fails

Issue: cdk deploy fails with errors

Solutions:

  1. Run cdk synth first to check for issues
  2. Verify AWS credentials: aws sts get-caller-identity
  3. Check cdk-nag findings and address or suppress them
  4. Ensure CDK is bootstrapped: cdk bootstrap
  5. Review CloudFormation events in AWS Console

Amplify Build Fails

Issue: Amplify build fails after deployment

Solutions:

  1. Check AMPLIFY_MONOREPO_APP_ROOT is set to frontend
  2. Verify buildSpec in CDK matches your project structure
  3. Check Amplify build logs in AWS Console
  4. Ensure Next.js version is 12-15 (not 16+)
  5. Verify environment variables are set on the branch

Frontend Can't Connect to Backend

Issue: Frontend shows CORS errors or can't reach API

Solutions:

  1. Verify API URL in frontend environment variables
  2. Check CORS configuration in Lambda Function URL or API Gateway
  3. Ensure Amplify app URL is in backend CORS allowed origins
  4. Test API endpoint directly with curl or Postman

Security Scan Failures

Issue: cdk-nag or security scans report violations

Solutions:

  1. Review findings and fix resource configurations
  2. Add suppressions with ADR-format reasons if intentional
  3. Consult .kiro/steering/security/ files for guidance
  4. Use cic-security agent to review and fix issues

Need More Help?

  • Kiro Documentation: Check .kiro/README.md for MCP and Power setup
  • Steering Files: Review .kiro/steering/ for domain-specific guidance
  • AWS Documentation: Use AWS documentation MCP server for latest info
  • GitHub Issues: File issues in this repository for template problems

Removing Commit History

When using this as a template for a new repo, you can strip the entire commit history to start fresh with a single initial commit:

git checkout --orphan fresh-start
git add -A
git commit -m "Initial commit"
git remote add new-origin https://github.com/REPO_OWNER/REPO_NAME.git
git branch -D main
git branch -m main
git push origin main --force

Warning: --force rewrites the remote branch history. Only do this on a repo you own and before collaborators have cloned it.


Credits

This application was developed by:

[INSERT_ADDITIONAL_ACKNOWLEDGMENTS - Teams, supporters, or organizations to acknowledge]


License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors