This project serves as a playground for the initial version of AWS CDK Rust.
Infrastructure-as-code (IaC) project for a simple full-stack application using AWS CDK Rust.
The components:
- Frontend: AWS Amplify
- Backend: AWS Lambda
- Database: Amazon Aurora DSQL
- Reverse Proxy: CloudFront
The following environment variables are required:
| Variable | Description |
|---|---|
GITHUB_ACCESS_TOKEN |
GitHub token for accessing your repo |
FRONTEND_GITHUB_REPOSITORY |
URL of the frontend GitHub repository |
LAMBDA_ZIP_PATH |
Path to the packaged Lambda code .zip |
- Set up the required environment variables
- Run the project to generate CloudFormation templates:
cargo run - Deploy the stack:
./deploy.sh - To tear down the infrastructure:
./destroy.sh
⚠️ Amplify job needs to be run manually after initial deployment- After stack deployment, navigate to AWS Amplify Console
- Select your application and branch
- Click "Run build" to start the initial build process
- Subsequent code pushes will trigger builds automatically