Skip to content

Conversation

@mwarman
Copy link
Member

@mwarman mwarman commented Nov 30, 2025

📢 Instructions

  • Begin with a DRAFT pull request.
  • Follow italicized instructions to add detail to assist the reviewers.
  • After completing all checklist items, change the pull request to READY.

🔧 Change Summary

List the changes included in this pull request.

  • fixes Foundation #1
  • Added an example Lambda function as an API Gateway REST API endpoint handler
  • Added foundational infrastructure, source components, tests, and docs

📝 Checklist

Pull request authors must complete the following tasks before marking the PR as ready to review.

  • Complete a self-review of changes
  • Unit tests have been created or updated
  • The code is free of [new] lint errors and warnings

🧪 Steps to Test

Describe the process to test the changes in this pull request.

  1. Deploy to AWS and test the API

🔗 Additional Information

Optionally, provide additional details, screenshots, or URLs that may assist the reviewer.

  • ...

- Added TypeScript configuration file (tsconfig.json) for project setup.
- Implemented logger utility for configurable logging levels and formatting.
- Created DynamoDB client utility for simplified interactions with AWS DynamoDB.
- Introduced configuration module for environment variable validation using Zod.
- Added API Gateway response utility for standardized response handling.
- Updated package.json to include new dependencies and build script.
- Replaced the placeholder test command with actual jest commands for testing.
- Added commands for test coverage and watch mode.
- Included jest and ts-jest as devDependencies.
- Added @types/jest for TypeScript support in tests.
…onfiguration utilities

- Created a new CDK stack (DataStack) for managing DynamoDB tables with environment-specific configurations.
- Added unit tests for DataStack to validate resource properties for dev and prd environments.
- Introduced configuration utilities to manage environment variables and validation using Zod.
- Implemented Jest tests for configuration utilities to ensure correct behavior and error handling.
- Added TypeScript configuration and package.json for infrastructure management.
- Introduced logging configuration options in the infrastructure guide and environment variables.
- Created a new Lambda stack to manage Lambda functions and API Gateway.
- Implemented a List Tasks Lambda function with structured logging and error handling.
- Added API Gateway integration for the List Tasks function with CORS support.
- Enhanced DynamoDB service to retrieve tasks with logging.
- Updated tests for Lambda stack, task service, and handlers to cover new logging features and API behavior.
@mwarman mwarman self-assigned this Nov 30, 2025
@mwarman mwarman linked an issue Nov 30, 2025 that may be closed by this pull request
…n with partition key, update tests accordingly
- Added `CDK_APP_LOGGING_FORMAT` to configuration schema with options for 'text' and 'json'.
- Integrated pino as the logging library for structured logging.
- Updated logger utility to support both text and JSON formats based on configuration.
- Modified logging statements across the application to include contextual information.
- Enhanced tests to validate logging behavior for both formats.
@mwarman mwarman marked this pull request as ready for review December 1, 2025 13:21
@mwarman mwarman merged commit 3245c18 into main Dec 1, 2025
1 check passed
@mwarman mwarman deleted the 1-foundation branch December 1, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Foundation

2 participants