? What kind of access do you want for Authenticated users? 전체 선택 (create/
update, read, delete)
? What kind of access do you want for Guest users? 전체 선택 (create/update,
read, delete)
? Do you want to add a Lambda Trigger for your S3 Bucket? Y
? Select from the following options: Create a new function
? Do you want to edit the local <함수 이름> lambda function now? Y
마지막 선택지에서
Y
를 입력하면 에디터에서 함수가 열립니다.
6.5.1
이미지 크기 조정을 위한 사용자 정의 로직 추가
이제 함수를 수정해서 이미지 크기를 조정하는 기능을 구현하겠습니다.
함수에서는 이벤트가 발생하면
S3
에서 이미지를 가져와 너비가
1
,
000
픽셀보다 큰지 확인합니
다. 만약
1
,
000
픽셀보다 크다면 너비를
1
,
000
픽셀로 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.