Currently, our identity service has five Lambda functions. Each of these Lambda functions uses utility functions that are duplicated across each function. This redundancy increases maintenance effort and the risk of inconsistencies. To address this, we propose using AWS Lambda Layers to consolidate these utility functions in a single location, allowing all Lambda functions to share the same layer.
Expected Behavior
When this issue is resolved:
Utility functions will be defined in a single AWS Lambda Layer.
All five Lambda functions in the identity service will use the shared layer for utility functions.
Maintenance of utility functions will be simplified, and updates will be uniformly applied to all Lambda functions.
Current Behavior
Each Lambda function contains duplicated utility functions.
Updating utility functions requires changes in multiple places.
There is a higher risk of inconsistencies and errors due to redundant code.
Reproducibility
[x] This issue is reproducible
[ ] This issue is not reproducible
Steps to Reproduce
Inspect the codebase of each Lambda function in the identity service.
Identify the duplicated utility functions.
Observe the maintenance and update process for these utility functions.
Severity/Priority
[ ] Critical
[x] High
[ ] Medium
[ ] Low
Checklist
[x] I have read and followed the project's code of conduct.
[x] I have searched for similar issues before creating this one.
[x] I have provided all the necessary information to understand and reproduce the issue.
[x] I am willing to contribute to the resolution of this issue.
Issue Description
Currently, our identity service has five Lambda functions. Each of these Lambda functions uses utility functions that are duplicated across each function. This redundancy increases maintenance effort and the risk of inconsistencies. To address this, we propose using AWS Lambda Layers to consolidate these utility functions in a single location, allowing all Lambda functions to share the same layer.
Expected Behavior
When this issue is resolved:
Current Behavior
Reproducibility
Steps to Reproduce
Severity/Priority
Checklist