In this case, the Lambda function would need extra permissions to access the bucket contents. For example, your application could request picture_1920x1080.jpg, which would find picture.jpg and resize it to the given dimensions. You also don’t need to access the original object by the exact name. Simply change the bucket name to the ARN of the Object Lambda Access Point. To use different access points, you won’t need to update any client code. You can have multiple access points per bucket, which can each represent multiple “views” of the underlying data. You could, for example, run a database lookup and return a transformed object with new data, or make requests to external APIs. The uses for this can be basic, like redacting info or converting JSON to XML, but since it’s your own code, you can do whatever you’d like.
0 Comments
Leave a Reply. |