Skip to content
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

Use S3 to upload feedback images #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hugozap
Copy link
Collaborator

@hugozap hugozap commented Nov 23, 2022

  • Create s3 bucket.
  • Lambda that generates an upload url for s3
  • Endpoint that calls previous lambda to return the upload URL to clients.

@hugozap hugozap marked this pull request as ready for review November 23, 2022 12:58
@hugozap hugozap changed the title Integrate S3 uploading logic (for feedback images) Use S3 to upload feedback images Nov 23, 2022
Comment on lines +16 to +18
Key: `${uuid.v4()}.jpeg`,
ContentType: "image/jpeg",
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we confirmed about the file type will be always jpeg?

@@ -36,3 +30,28 @@ export function getLambdaApiSaveFeedback(
...props,
});
}

export function getUploadImageLambda(
scope: Construct,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need any test coverage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants