-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.html
201 lines (145 loc) · 4.8 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<html>
<head>
<style>
/*************************************
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; }
</style>
</head>
<div style="left: 32px; width: 975px; height: 753px;">
<div style="padding-left: 37.5px; padding-right: 37.5px;">
<div>
<h1>Welcome to AWS Lambda Eclipse Plugin</h1>
<p><strong>Congratulations</strong>! You have created your first AWS Lambda project. So what's next?</p>
<hr>
</div>
<div>
<h3>Step 1: Implement your function</h3>
<p>Open up <strong>LambdaFunctionHandler.java</strong> and implement the <strong>handleRequest</strong> 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.</p>
<blockquote>
<p><strong>Note:</strong> You can add new classes and additional external dependencies in your project if needed.</p>
</blockquote>
<hr>
</div>
<div>
<h3>Step 2: Test your function</h3>
<p>Open up <strong>LambdaFunctionHandlerTest.java</strong>. 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.</p>
<blockquote>
<p><strong>Note:</strong> 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.</p>
</blockquote>
<hr>
</div>
<div>
<h3>Step 3: Upload your function</h3>
<p>
Under Project or Package Explorer View, right-click on your project and select <strong>Amazon Web Services -> Upload Function to AWS Lambda</strong>.
Then follow the steps to create a new Lambda function or upload your code to an existing function.
</p>
</ul>
<hr>
</div>
<div>
<h3>Step 4: Invoke your function</h3>
<p>Now we are ready to run the function in the cloud. Right-click on your project again and select <strong>Amazon Web Services -> Run on AWS Lambda</strong>. <br>
In the input dialog, enter the JSON input for your function, or select one of the JSON files in your project.</p>
<blockquote>
<p><strong>Tip:</strong> 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".</p>
</blockquote>
<p>Click <strong>Invoke</strong> and check the output of your function in the Eclipse Console View.</p>
<hr>
</div>
<div>
<h3>What's next?</h3>
<p>If you want to know more about AWS Lambda, check out the following links:</p>
<ul>
<li><a href="http://aws.amazon.com/lambda/details/">AWS Lambda Product Details</a></li>
<li><a href="http://docs.aws.amazon.com/lambda/latest/dg/welcome.html">AWS Lambda Developer Guide</a></li>
</ul>
<p><a href="mailto:[email protected]">Contact us</a> to send bug reports and feedbacks.</p>
<p><strong><em>AWS SDK for Java team</em></strong></p>
</div>
</div>
</div>
</html>