Skip to content

Use S3 to upload feedback images#9

Open
hugozap wants to merge 1 commit into
mainfrom
update-s3-feedback-image-upload
Open

Use S3 to upload feedback images#9
hugozap wants to merge 1 commit into
mainfrom
update-s3-feedback-image-upload

Conversation

@hugozap

@hugozap hugozap commented Nov 23, 2022

Copy link
Copy Markdown
Collaborator
  • 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
Copy Markdown
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?

}

export function getUploadImageLambda(
scope: Construct,

Copy link
Copy Markdown
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