云计算代写|Cloud Computing and Big Data Homework Assignment 2

这是一个美国的云计算和大数据相关的编程作业代写

Assignment:

Implement a photo album web application that can be searched using natural language
through both text and voice. You will learn how to use Lex, ElasticSearch, and
Rekognition to create an intelligent search layer to query your photos for people,
objects, actions, landmarks and more.

Outline:

This assignment has eight components:

1. Launch an ElasticSearch instance1

a. Using AWS ElasticSearch service2, create a new domain called “photos”.
b. Make note of the Security Group (SG1) you attach to the domain.
c. Deploy the service inside a VPC3.

i. This prevents unauthorized internet access to your service.

2. Upload & index photos

a. Create a S3 bucket (B2) to store the photos.
b. Create a Lambda function (LF1) called “index-photos”.

i. Launch the Lambda function inside the same VPC as

ElasticSearch. This ensures that the function can reach the
ElasticSearch instance.

ii. Make sure the Lambda has the same Security Group (SG1) as
ElasticSearch.

c. Set up a PUT event trigger4 on the photos S3 bucket (B2), such that
whenever a photo gets uploaded to the bucket, it triggers the Lambda
function (LF1) to index it.

i. To test this functionality, upload a file to the photos S3 bucket (B2)
and check the logs of the indexing Lambda function (LF1) to see if
it got invoked. If it did, your setup is complete.

● If the Lambda (LF1) did not get invoked, check to see if you
set up the correct permissions5 for S3 to invoke your
Lambda function.

d. Implement the indexing Lambda function (LF1):

i. Given a S3 PUT event (E1) detect labels in the image, using
Rekognition6 (“detectLabels” method).

ii. Use the S3 SDK’s headObject method7 to retrieve the S3 metadata
created at the object’s upload time. Retrieve the
x-amz-meta-customLabels metadata field, if applicable, and
create a JSON array (A1) with the labels.

iii. Store a JSON object in an ElasticSearch index (“photos”) that
references the S3 object from the PUT event (E1) and append
string labels to the labels array (A1), one for each label detected by
Rekognition.

Use the following schema for the JSON object:

{
“objectKey”: “my-photo.jpg”,
“bucket”: “my-photo-bucket”,
“createdTimestamp”: “2018-11-05T12:40:02”,
“labels”: [
“person”,
“dog”,
“ball”,
“park”
]
}


程序代写代做C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB


本网站支持淘宝 支付宝 微信支付  paypal等等交易。如果不放心可以用淘宝交易!

E-mail: itcsdx@outlook.com  微信:itcsdx


如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。

blank

发表评论