Create a java app in cloud to implement a handler

Assignment Help JAVA Programming
Reference no: EM132779330

Assignment - AWS Lambda Exercise

Overview: In Assignment 2, students are expected to demonstrate their level of understanding and skill attained through practicing the workshops in week 6. The assignment has three parts (Part A: 15% 18%, Part B: 5%, and Part C: 5% 7%).

Environment Setup: You need to use the AWS Educate (student) account ‘Cloud Systems Development-NEW' created for you, along with Cloud9 as development environment. You will also need AWS Lambda and S3 to complete the programming tasks. You already should have completed the setup of the development environment (e.g., installing java, AWS SDK, maven etc.), following week 2 laboratory document on Cloud9 in You ‘Cloud Systems Development-NEW' account.

Part A - Create a Java app in Cloud9 to implement a handler for the intended Lambda function. Following this, create the Lambda function using the handler in AWS Lambda Console.

Tasks

• Handler App: Create a Java app using maven app in Cloud9 using appropriate commands shown in week 2 laboratory. The app should have the following characteristics:
o App/project name: yourSCUusernameA2HandlerApp (e.g., mine one would be
pchakrab15A2HandlerApp).
o The package name should be a2.handler.
o The class containing the main method should be named as HelloLambda.
o Include appropriate dependencies into the pom.xml so that it supports maven, Lambda etc.
• Handler: Write a Java program in the HelloLambda.java file created inside the maven app. Implement a handler method named yourSCUusernameLambdaHandler (e.g., mine one would be pchakrab15LambdaHandler) for AWS Lambda that accept S3 events as parameter type. The handler also should write a log message: ‘A S3 create event is triggered and the test is successful', which will appear in CloudWatch. Create a JAR file of your handler app.
• Lambda Function: Open AWS Lambda console and create a function named yourSCUusernameLambdaHandler (essentially the same as the name of the handler) using the JAR file of your handler app. Use the default role (shown in workshop) while creating this function.
• Trigger: Add a trigger for S3 events so that your Lambda function is triggered when a S3 ‘create event' takes place.

Part B - Create another Java app in Cloud9 that creates an S3 object to test the Lambda function you have created in Part A.
Tasks

• S3 Bucket: Create a S3 bucket named yourSCUusername-s3-bucket-lambda (mine one would be pchakrab15-s3-bucket-lambda). Complete the necessary bucket configuration (e.g., making public) using week 3 laboratory on S3.
• Tester App: Create a Java app using maven named yourSCUusernameA2TesterApp (e.g., mine one would be pchakrab15A2TesterApp). This app will create/write a new object (a text file)

with information including your name and student ID into the S3 bucket you just have created. Use a separate method to implement this functionality.

Part C - Identify and discuss whether and how you can add a DynamoDB trigger with ‘write' access to the default role used in the lambda function (~300 words).

Tasks

• Create a word file named as yourSCUusernameA2Report.docx.
• Check the details of the default role you used while creating the lambda function. Record the ‘Role ARN' into the report.
• Check the ‘Permission Policies' list and find out the ‘Access Level' for ‘DynamoDB' from that list. Record the access level you have found into your report.
• Discuss in detail with relevant screenshot of the console why and how you are able/unable to add a DynamoDB trigger with ‘write' access to your lambda function with the existing default role.

Submission Checklist: Following is the checklist, submit all in the list via Blackboard submission link. You can download the app from Cloud9 by right clicking on the app project folder it and then clicking download. You need to submit the full app folder. You need to use the classroom account for completing this assignment and share your username and password for this account with us. The marker will login to your classroom account and check your apps there. The marker will also check the command history to make sure that you have used the classroom account console to complete the apps. Your submission will not be marked if they do not comply these requirements.
• Zipped app folder for the handler app (Part A).
• Zipped app folder for the tester app (Part B).
• The report (word file), along with the complete assignment cover sheet.
• Include your username-password of AWS classroom account into the report for marking purpose. Failure to do so will result a Fail (F) grade to your assignment.

Attachment:- AWS Lambda Exercise.rar

Reference no: EM132779330

Questions Cloud

What is the gross pay for martin : What is the gross pay for Martin? Thomas Martin receives an hourly wage rate of $15, with time and a half for all hours worked in excess of 40 hours
Creating a service company master budget : Describe the process for creating a service company master budget. How would the budget process for the service company differ from a manufacturing company
International business negotiations : Culture influences the negotiation styles that are used in international business negotiations.
Determine the proceeds of the note assuming the note carries : Determine the proceeds of the note assuming the note carries an interest rate of 10%. Batson Company issued a 60-day note with a face amount.
Create a java app in cloud to implement a handler : Create a Java app in Cloud to implement a handler for the intended Lambda function. Following this, create the Lambda function using the handler in AWS Lambda
Characteristics of french wireless-telecom segment : Identify the key economic characteristics of the French wireless/telecom segment (U.S. SIC code 4813, UK SIC 6110) of the communications services industry.
Record the reacquisition of the shares assuming the company : Record the reacquisition of the shares assuming the company paid $49,000 to reacquire the share. Pharoah Treats Limited reported 43,000 common shares
Prepare the entries to liquidate the partnership on January : Assume that Red and White partnership liquidates by selling its other assets for P5,000,000. Prepare the entries to liquidate the partnership on January
Discuss the scope of the resource : Discuss the scope of the resource resource - what were the main arguments and propositions.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd