Monday, April 5, 2021

Creating an Amazon Web Services Lambda function that tags digital assets located in Amazon S3 buckets

 You can create an Amazon Web Services Lambda function that automatically tags digital assets located in an Amazon Simple Storage Service (Amazon S3) bucket. For example, assume you run the Lambda function and you have this image in an Amazon S3 bucket.


As an Amazon Web Services API developer, you can create a Lambda function by using the Lambda Java runtime API. This example invokes different AWS services to perform this specific use case. This tutorial shows you how to use the AWS SDK for Java V2 API to invoke both the Amazon S3 service along with the Amazon Rekognition service.

The Lambda function reads all objects in a given Amazon S3 bucket. For each object in the bucket, it passes the image to the Amazon Rekognition service to geneate a series of labels. Each label is used to create a tag that is applied to the image. After you execute the Lambda function, it automatically creates tags based on all images in a given Amazon S3 bucket and applies them to the images, as shown in this illustration.


To read this AWS tutorial, click https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/usecases/creating_lambda_tag_assets


I work on AWS Java code that helps AWS developers. Included in this role is working with AWS Services such as S3, DynamoDB, EC2, Lambda functions, and so on. 

https://www.linkedin.com/in/scottmacdonald2010/


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Deploying a Java web application to Amazon ECS

 You can deploy a Java web application that uses the AWS SDK for Java (v2) to Amazon Elastic Container Service (Amazon ECS). Amazon ECS is a...