This repository contains a boilerplate to quickly get started with AWS CDK projects using TypeScript. Designed to streamline your CDK app development, this boilerplate provides the essentials to launch your infrastructure-as-code (IAC) projects.
- TypeScript: Strongly typed code for AWS CDK, which ensures code quality and ease of refactoring.
- Sample Constructs: Basic constructs included to showcase how to define AWS resources.
- Sample Stacks: Basic stack included to showcase how to define AWS resources.
- Modularity: Organized codebase to promote modular development of infrastructure components.
- Node.js
- AWS CDK CLI
-
Clone the Repository
git clone https://github.com/mikaeelkhalid/aws-cdk-typescript-boilerplate.git
-
Navigate to the Directory
cd aws-cdk-typescript-boilerplate
-
Install Dependencies
npm install
-
Deploy to AWS
cdk deploy
app/
: Contains the entry point for the AWS CDK app.config/
: Contains the configurations for stacks and constructs.constructs/
: Houses the constructs definitions [AWS resources].stacks/
: Houses the stack definitions and AWS resources constructs.
To add your own constructs [resources] or stacks:
- Navigate to the
constructs/
directory. - Create your new CDK construct or modify existing ones.
- Import the construct to
stacks/
to use it one of stack. - Ensure you've added your stack or resources to the app initialization in the
app/
directory.
Pull requests are welcome!
Note: The above is just a sample based on typical structures of AWS CDK projects. You might need to adjust or expand based on the specific contents of the repository.