https://github.com/ranman/xray-lambda-demo
https://github.com/ranman/xray-lambda-demo
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ranman/xray-lambda-demo
- Owner: ranman
- Created: 2018-05-30T22:15:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T22:15:50.000Z (about 8 years ago)
- Last Synced: 2025-01-01T07:09:59.418Z (over 1 year ago)
- Language: Java
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- 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; }
AWS Toolkit for Eclipse - AWS Serverless Project
Note: If you are brand new to AWS Serverless application,
please see Lambda-based Applications for more information.
The serverless.template file under your workspace is a simplified version
of AWS Serverless Application Model (SAM) that leverages
the Eclipse toolkit so that you only need to specify the parameters you care about. Specifically, the toolkit helps you with the following settings:
-
AWSTemplateFormatVersion and Transform: optional, the toolkit will use the default values.
-
AWS::Serverless::Function/Runtime: optional, only java is supported for this parameter.
-
AWS::Serverless::Function/CodeUri: disabled, the toolkit will generate the code uri for you.
-
AWS::Serverless::Function/Handler: take it as class name instead of the fully qualified class name (FQCN). The toolkit will put all the Lambda handlers under one package and generate the FQCN for these handlers before deployment.
What's next?
Step 1: Implement your functions
Note: If this project is created from a blueprint, go to Step 2. The blueprint already implemented all the Lambda functions.
Open up all the Lambda function files in your function package and implement the handleRequest method for each of them. 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: Deploy your Serverless project
Under Project or Package Explorer View, right-click on your project and select Amazon Web Services -> Deploy Serverless Project....
Then follow the steps to create a new AWS CloudFormation stack with all the resources related to Lambda functions.
Learn more
If you want to know more about AWS Lambda, check out the following links:
If you want to know more about AWS API Gateway, check out the following links:
If you want to know more about AWS CloudFormation, check out the following links:
AWS CloudFormation Product Details
AWS CloudFormation Walkthroughs
Contact us to send bug reports and feedbacks.
AWS SDK for Java team