-
Notifications
You must be signed in to change notification settings - Fork 940
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
New serverless pattern - API Gateway - Lambda - Redshift Data API #2487
base: main
Are you sure you want to change the base?
New serverless pattern - API Gateway - Lambda - Redshift Data API #2487
Conversation
Hi @klmuthu I think you are missing the cdk.json file. When deploying, I receive this error: Also, please include a completed example-pattern.json file |
Hi @ellisms I updated the readme to use --app with cdk deploy. Also, updated the readme to create python virtual environment to avoid version conflicts. I didnt create cdk.json just to keep the repo small. Let me know if this deploys now. Please note the Redshift cluster has to be created as a prerequisite and the .env should be updated with the arn. The instructions is in the readme. |
Thanks @klmuthu . I'm able to deploy the solution, but when testing, I'm getting the following error in the Lambda function: |
Hi @ellisms, Thanks for testing. There was a copy/paste error. I fixed and tested it. Please try again. |
Thanks. The function now executes, but returns this error: |
Hey @ellisms, I believe it could be because the db name not correct. You used hyphen instead of underscore in the db name. The name should be sample_data_dev. Can you give this a try? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting a few minor changes.
Good catch! Tested and it is working. Left a few feedback items for review/updates. |
Hi @ellisms, made the changes you requested. |
Thanks @klmuthu . I'll add this to the publishing queue. |
Issue #, if available:
Description of changes:
Patter to expose data from Redshift through API Gateway using Lambda and Redshift Data API.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.