Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/8parth/awslambdas3eventhandler
https://github.com/8parth/awslambdas3eventhandler
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/8parth/awslambdas3eventhandler
- Owner: 8parth
- Created: 2016-02-04T17:37:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-04T17:43:57.000Z (almost 9 years ago)
- Last Synced: 2024-07-16T06:52:14.748Z (4 months ago)
- Language: Java
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.html
Awesome Lists containing this project
README
/*************************************
GENERAL
*************************************/
body {
margin: 15;
padding: 0;
font: 12px/1.4em "Lucida Grande", Verdana, sans-serif;
color: #333;
overflow-y: scroll;
text-rendering: optimizeLegibility;
background-color: #F2F2F2;
}h2 {
font-size: 1.3em;
line-height: 1.5em;
font-weight: bold;
margin: 20px 0 0 0;
padding: 0;
border-bottom: 3px solid #eee;/* icon setup */
padding: 0.2em 1em 0.2em 30px;
background-position: 0 50%;
background-repeat: no-repeat;
}/*************************************
SECTIONS
*************************************/
div#content {
margin: 30px auto;
padding: 0 30px 15px 30px;
background-color: #fff;
width: 940px;/* box-shadow */
-moz-box-shadow: 0 5px 10px #aaa;
-webkit-box-shadow: 0 5px 10px #aaa;
box-shadow: 0 5px 10px #aaa;/* bottom corners */
-webkit-border-bottom-right-radius: 7px;
-webkit-border-bottom-left-radius: 7px;
-moz-border-radius-bottomright: 7px;
-moz-border-radius-bottomleft: 7px;
border-bottom-right-radius: 7px;
border-bottom-left-radius: 7px;
}/*div#content div.section {}*/
div#content div.section ul {
margin: 0;
padding: 1em 0 0 2em;
overflow: hidden;
}div#content div.section ul li {
list-style-type: square;
white-space: nowrap;
line-height: 1.5em;
}/* Section titles */
div#content div.section.s3 h2 {
background-image: url(../images/drive.png);
}div#content div.section.ec2 h2 {
background-image: url(../images/server.png);
}div#content div.section.sdb h2 {
background-image: url(../images/database.png);
}/*************************************
CONTAINERS
*************************************/
.container {
zoom: 1;
}.container:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}/*************************************
GRIDS
*************************************/
.grid { float: left; margin-right: 20px; }
.gridlast { margin-right: 0; }
.grid5 { width: 300px; }
.grid15 { width: 940px; }Welcome to AWS Lambda Eclipse Plugin
Congratulations! You have created your first AWS Lambda project. So what's next?
Step 1: Implement your function
Open up LambdaFunctionHandler.java and implement the handleRequest method. This method is the entry point for your Lambda function, and it will be invoked by Lambda in response to input from the event sources of your function.
Note: You can add new classes and additional external dependencies in your project if needed.
Step 2: Test your function
Open up LambdaFunctionHandlerTest.java. Fill in your test logic to validate the input and output of your function handler, and then run it locally as a normal JUnit test.
Note: The unit test provides a sample JSON input file if you have chosen a predefined event type as your function input. You can modify the JSON file, or create new ones based on it.
Step 3: Upload your function
Under Project or Package Explorer View, right-click on your project and select Amazon Web Services -> Upload Function to AWS Lambda.
Then follow the steps to create a new Lambda function or upload your code to an existing function.
Step 4: Invoke your function
Now we are ready to run the function in the cloud. Right-click on your project again and select Amazon Web Services -> Run on AWS Lambda.
In the input dialog, enter the JSON input for your function, or select one of the JSON files in your project.
Tip: You can add new JSON input files in your project, and they will show up in this dialog as long as the file name ends with ".json".
Click Invoke and check the output of your function in the Eclipse Console View.
What's next?
If you want to know more about AWS Lambda, check out the following links:
Contact us to send bug reports and feedbacks.
AWS SDK for Java team