Posts

Creating an AWS Lambda function that detects images with Personal Protective Equipment

Image
  You can create an AWS Lambda function that detects personal protective equipment (PPE) in images 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. After you execute the Lambda function, it detects PPE information in the image (along with any other images) and creates a record in an Amazon DynamoDB table, as shown in this illustration. In addition, the Lambda function creates a list of all images with PPE and emails the list by using the Amazon Simple Email (Amazon SES) service. To read this AWS tutorial, click https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/usecases/creating_lambda_ppe . 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/

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

Image
 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...

Building a Spring Boot web application that Streams Amazon S3 content over HTTP

Image
 You can use Amazon Web Services to create a web application that streams Amazon Simple Storage Service (Amazon S3) video content over HTTP. The video is displayed in the application along with a menu that displays the videos that you can view. The application you create uses Spring Boot APIs to build a model, different views, and a controller. This web application also reads the object tags to dynamically build the video menu. To read the video content and object tags, you use the Amazon S3 Java API (V2).  In the previous illustration, notice the video menu that displays video titles and descriptions and used to let users know which videos are available. To view a specific video, the user can click the video title. A GET Request is made to a Spring Controller, the application reads the specific video in an Amazon S3 bucket, encodes the byte array, and then steams the data where the video is displayed in an HTML5 Video tag. To read this AWS tutorial, click  https://github...

Using AWS Step Functions and the AWS SDK for Java to build workflows that sends notifications over multiple channels

Image
  You can use Amazon Web Services to create a workflow that sends notifications over multiple channels. There are many practical business needs for this type of functionality. For example, a weather agency needs to warn many people about a storm, or a school wants to send parents alerts when kids are missing. The use case for this AWS tutorial assumes you work at a school and you need to alert parents when a student skips school. Do you send an email message, do you phone the parents, or do you send a text message to a mobile device? The AWS workflow created in this tutorial sends messages over multiple channels, including email, as shown in this illustration. In this AWS tutorial, you create an AWS serverless workflow by using the AWS SDK for Java and AWS Step Functions. Each workflow step is implemented by using an AWS Lambda function. Lambda is a compute service that enables you to run code without provisioning or managing servers. For more information about Lambda, see  Wh...

Creating AWS video analyzer applications using the AWS SDK for Java

Image
  You can create a Java web application that analyzes videos for label detection by using the Java SDK for Java version 2. The application created in this AWS tutorial lets you upload a video (MP4 file) to an Amazon Simple Storage Service (Amazon S3) bucket. Then the application uses the Amazon Rekognition service to analyze the video. The results are used to populate a data model and then a report is generated and emailed to a specific user by using the Amazon Simple Email Service (SES). The following illustration shows a report that is generated after the application completes analyzing the video. In this tutorial, you create a Spring Boot application that invokes various AWS services. The Spring Boot APIs are used to build a model, different views, and a controller. For more information, see  Spring Boot . This application uses the following AWS services: Amazon Rekognition Amazon S3 Amazon SES AWS Elastic Beanstalk To read this AWS tutorial, click  https://github...

Using Amazon Cognito to require a user to log into a web application

Image
 Amazon Cognito lets you add user sign-up, sign-in, and access control to your web applications. Amazon Cognito scales to millions of users and supports sign-in with social identity providers, such as Facebook, Google, and enterprise identity providers such as OAuth2. In this tutorial, OAuth2 and Amazon Cognito are used to protect a web application. This means a user has to log into the application by using the credentials of a user defined in an Amazon Cognito User Pool. For example, when a user accesses a web application, they see a web page that lets anonymous users view a log in page, as shown in the following illustration. When the user clicks the log in button, they are presented with a log in form where they can enter their user credentials. After the user enters their credentials, they can access the web application. To read this tutorial, click:  https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/usecases/creating_amazon_cognito_app I work on AWS Java ...

Get up and running with the AWS Java SDK very fast

 Are you new to the AWS SDK for Java Version 2? You can get a Java application running very fast by following this quick start:  https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html For all new projects that use the AWS SDK for Java, its strongly recommended that you use Version 2 as opposed to Version 1. To learn the differences, see What Is the AWS SDK for Java 2.x Migration Guide? . 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/