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
Task5 #4
Conversation
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.
@@ -1,4 +1,4 @@ | |||
IMPORT_S3_BUCKET=nodejs-aws-task5-csv |
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.
Even this constants could be exposed, better to not commit .env file to a repo
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.
They have a bit different rules:
Note: .env, .env.development, and .env.production files should be included in your repository as they define defaults. .env*.local should be added to .gitignore, as those files are intended to be ignored. .env.local is where secrets can be stored.
https://www.serverless.com/plugins/serverless-dotenv-plugin
So, I'm storing confidential data in .env.*.local files.
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.
Ok
@Vladlan Sorry, I forget to deploy the updated frontend. Could you please check it one more time? |
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.
LGTM. Final mark 8/8.
Frontend: https://dibzgqdmk7fo5.cloudfront.net (task4 PR: generalov/nodejs-aws-fe#4)
Implemented Endpoints: https://app.swaggerhub.com/apis-docs/e.generalov/nodejs-aws/1.4
Prerequisites
TASK 5.1
uploaded/${fileName}
.TASK 5.2
Evaluation criteria
Reviewers should verify the lambda functions by invoking them through provided URLs.
Additional (optional) tasks
I've tried to write tests using aws-sdk-mock but it incorrectly mocks the method
S3:getSignedUrlPromise()
returning a callbackish response{ promise, createReadStream, ... }
. So Jest is being used.