Documentation on how to use this library using AWS lambda #78
-
When i was trying to use this using lambda, i had to remove following deps from the zip. Have put in the reasons for the same
I also see pytz, however as of now i am not sure of the impact of removing the same |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thank you for this feedback. Regarding the dependency on lxml, this package is uses for some of our IdP (Identity provider plugin) code along with beautifulsoup. In looking at the beautifulsoup docs I see there is a HTML parser by default, from Python standard library ref. I think it'd be worth while to investigate if the parser included by default would be sufficient here (we haven't tested this), as it'd be nice to reduce the number of dependencies redshift_connector has. I will take a look into this option and follow up with my findings. While lxml is not applicable to your use case, there are methods for downloading Python modules for a platform other than the one currently in use. see this stackoverflow post for example. I had no clue this was an option, but it's pretty cool :) As for the dependencies on boto3 and botocore, these are needed for use of IAM and IDP auth. Though needing to remove them before deploying your lambda is not ideal as they take up a good bit of space... ~67MB or so. Aside from taking up space, the lambda docs imply this shouldn't break anything:
As for documentation re: using redshift_connector with lambda, I've used the official AWS docs for Deploy Python Lambda functions with .zip file archives in the past. Have you found gaps specific to redshift_connector in these docs that you'd like to see addressed in our docs? If so, please let us know and we can add some documentation :) |
Beta Was this translation helpful? Give feedback.
Thank you for this feedback. Regarding the dependency on lxml, this package is uses for some of our IdP (Identity provider plugin) code along with beautifulsoup. In looking at the beautifulsoup docs I see there is a HTML parser by default, from Python standard library ref.
I think it'd be worth while to investigate if the parser included by default would be sufficient here (we haven't tested this), as it'd be nice to reduce the number of dependencies redshift_connector has. I will take a look into this option and follow up with my findings.
While lxml is not applicable to your use case, there are methods for downloading Python modules for a platform other than the one currently in use. se…