-
Notifications
You must be signed in to change notification settings - Fork 151
[sdlf-datalakelibrary] simplified datalake-library #540
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
[sdlf-datalakelibrary] simplified datalake-library #540
Conversation
a0ab49f to
f3141ad
Compare
f3141ad to
5758a7d
Compare
| @@ -1,3 +1,4 @@ | |||
| # [**DEPRECATED**] | |||
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.
should these be removed?
| sqs_interface = SQSInterface(sqs_config.get_stage_dlq_name) | ||
|
|
||
| client = DataLakeClient( | ||
| team=event["body"]["team"], pipeline=event["body"]["pipeline"], stage=event["body"]["pipeline_stage"] |
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.
fw these keys might not exist in the event
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.
how? we send the event from the routing lambda with those inputs in the event.body
| local_path = client.s3.download_object(bucket, key) | ||
|
|
||
| # Apply business business logic: | ||
| # Apply business logic: |
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.
qq - previously datalake library also contained transformation business logic. is the user expected to extend the library or logic has completely moved here?
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.
the transformation logic was removed in previous PRs. I am assessing the best way to allow customers to add their custom transformation logic
3ba3fb4
into
aws-solutions-library-samples:main
Issue #, if available:
Running the workshop following the steps in https://catalog.us-east-1.prod.workshops.aws/workshops/501cb14c-91b3-455c-a2a9-d0a21ce68114/en-US/20-production results in the stageA and stageB failure (in the routing Lambdas). The initial error is described here: #538
Taking a closer look at the issue the
datalake_libraryand the Lambdas is larger than just some imports:Those are bugs, on top of it the architecture of the datalake_library is not clean, there are unused methods, mix of interfaces, configs.
Next steps:
Description of changes:
datalake_library--> read description of the layer in datalake_library/READMEDataLakeClientTesting
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.