Access your target S3 bucket named book-image-stores-by-myself

On the Upload interface

Monitor the Lambda function execution and verify image processing completion

Navigate to your destination S3 bucket: book-image-resize-stores-by-myself

Access the Object URL to retrieve your processed image

Note: You may encounter an Access Denied error at this stage

To enable public image access, configure the bucket policy:

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::book-image-resize-stores-by-myself/*"
}
]
}

After policy configuration, repeat steps 4 and 5 to download the processed image. Compare it with your original upload to verify that the Lambda resize function has performed correctly.