Skip to content

feat:(typescript/postgres-lambda) #1194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Jul 14, 2025
Merged

feat:(typescript/postgres-lambda) #1194

merged 23 commits into from
Jul 14, 2025

Conversation

kaiz-io
Copy link
Contributor

@kaiz-io kaiz-io commented Jul 12, 2025

Shows how to use lambda with Postgres.

Lambda postgres via custom resource
Lambda call postgres
Postgres call lambda


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

kaiz-io added 23 commits July 11, 2025 11:51
- Fix security group rule direction (allowDefaultPortFrom instead of allowDefaultPortTo)
- Improve Lambda to PostgreSQL connection with increased timeout and better logging
- Replace custom CloudFormation response handling with cfn-response library
- Update PostgreSQL setup function to use standard CloudFormation response pattern
- Add proper error handling in setup function
- Update SQL functions to use JSONB casting instead of text for proper JSON handling
- Change Lambda invocation type from 'Event' to 'RequestResponse' for synchronous execution
- Add parameter group to RDS cluster for custom configuration
- Update Aurora PostgreSQL version to 17.4
- Fix code formatting and whitespace in Lambda functions
- Add detailed logging throughout the setup process
- Include environment variable logging for better debugging
- Add verification step to confirm function creation
- Improve error handling with stack traces
- Add comments to SQL script for better readability
- Include more detailed CloudFormation response data
- Add connection timeout for better error handling
- Fix security group rule direction for setup function (allowDefaultPortFrom instead of allowDefaultPortTo)
- Add test property to custom resource to force update on deployment
- Remove setup-postgres-lambda.sql as PostgreSQL setup is now automated via Lambda
- Remove test-lambda.sh as testing can be done through the AWS Console or CLI directly
- These files are no longer needed since the setup process is fully automated through CDK
- Update README.md to remove references to deleted files (setup-postgres-lambda.sql and test-lambda.sh)
- Add information about synchronous Lambda invocation in PostgreSQL to Lambda flow
- Remove unused parameter group from RDS cluster configuration
- Remove test property from custom resource as it's not needed
- Remove outdated SUMMARY.md file that's no longer relevant
@kaiz-io kaiz-io merged commit c579f1b into main Jul 14, 2025
6 checks passed
@kaiz-io kaiz-io deleted the feat/postgres-lambda branch July 14, 2025 16:39
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.

1 participant