Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title: Implement Import Service with S3 Integration and Lambda Functions
Description:
This pull request implements the Import Service as part of Task 5 requirements. The Import Service is responsible for handling file uploads to an S3 bucket and processing CSV files upon creation. Below are the implemented features:
Implemented Features
✅ Link to
frontend app✅ Link to
frontend pr✅ Task 5.1: Import Service and S3 Configuration
import-serviceat the same level asproduct-service.uploaded.✅ Task 5.2: Import Products File Lambda Function
importProductsFile./import.namefor the CSV file name.uploaded/${fileName}.importProductsFileLambda function.✅ Task 5.3: Import File Parser Lambda Function
importFileParser.s3:ObjectCreated:*event.uploaded/folder.csv-parser.✅ Task 5.4: Git Workflow and Submission
task-5.task-5intomaster.Additional Implementations (Optional Tasks)
✅ Unit Tests:
importProductsFileusing mocked AWS SDK methods.importFileParserto ensure correct parsing behavior.✅ File Processing Enhancement:
uploaded/toparsed/.parsed/and then deleting it fromuploaded/.How to Test:
Invoke
importProductsFileLambda function via the API Gateway URL with a validnamequery parameter.example:Then use the
echo "$TEST_URL"command to getResponse:Upload a CSV file using the signed URL returned by the Lambda function.
example:Monitor

importFileParserfunction in CloudWatch to verify log outputs.Check S3 bucket to confirm file movement from

uploaded/toparsed/.Reviewers: