| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory holds example projects demoing different components of the Powertools for AWS Lambda (Java). Each example can be copied from its subdirectory and used independently of the rest of this repository.
Many of the examples use AWS Serverless Application Model (SAM). To get started with them, you can use the SAM Command Line Interface (SAM CLI) to build it and deploy an example to AWS.
To use the SAM CLI, you need the following tools.
To learn more about SAM, check out the developer guide. You can use the CLI to test events locally, and run the application locally, amongst other things.
To build and deploy an example application for the first time, run the following in your shell:
# Switch to the directory containing an example for the powertools-core module
$ cd powertools-examples-core
# Build and deploy the example
$ sam build
$ sam deploy --guidedThe first command will build the source of your application. The second command will package and deploy your application to AWS, with a series of prompts:
You can find your API Gateway Endpoint URL in the output values displayed after deployment.
If you prefer to use an integrated development environment (IDE) to build and test your application, you can use the AWS Toolkit.
The AWS Toolkit is an open source plug-in for popular IDEs that uses the SAM CLI to build and deploy serverless applications on AWS. The AWS Toolkit also adds a simplified step-through debugging experience for Lambda function code. See the following links to get started.
| Back | FazBrowse Home | New Git URL |