Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobbylite/bjjbuddyfunction
Bjj Buddy AWS Lambda Function
https://github.com/bobbylite/bjjbuddyfunction
Last synced: about 15 hours ago
JSON representation
Bjj Buddy AWS Lambda Function
- Host: GitHub
- URL: https://github.com/bobbylite/bjjbuddyfunction
- Owner: bobbylite
- Created: 2020-07-17T06:39:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:58:29.000Z (about 2 years ago)
- Last Synced: 2024-11-09T01:07:55.357Z (about 2 months ago)
- Language: C#
- Size: 606 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# AWS Lambda Empty Function Project
This starter project consists of:
* Function.cs - class file containing a class with a single function handler method
* aws-lambda-tools-defaults.json - default argument settings for use with Visual Studio and command line deployment tools for AWSYou may also have a test project depending on the options selected.
The generated function handler is a simple method accepting a string argument that returns the uppercase equivalent of the input string. Replace the body of this method, and parameters, to suit your needs.
## Here are some steps to follow from Visual Studio:
To deploy your function to AWS Lambda, right click the project in Solution Explorer and select *Publish to AWS Lambda*.
To view your deployed function open its Function View window by double-clicking the function name shown beneath the AWS Lambda node in the AWS Explorer tree.
To perform testing against your deployed function use the Test Invoke tab in the opened Function View window.
To configure event sources for your deployed function, for example to have your function invoked when an object is created in an Amazon S3 bucket, use the Event Sources tab in the opened Function View window.
To update the runtime configuration of your deployed function use the Configuration tab in the opened Function View window.
To view execution logs of invocations of your function use the Logs tab in the opened Function View window.
## Here are some steps to follow to get started from the command line:
Once you have edited your template and code you can deploy your application using the [Amazon.Lambda.Tools Global Tool](https://github.com/aws/aws-extensions-for-dotnet-cli#aws-lambda-amazonlambdatools) from the command line.
Install Amazon.Lambda.Tools Global Tools if not already installed.
```
dotnet tool install -g Amazon.Lambda.Tools
```If already installed check if new version is available.
```
dotnet tool update -g Amazon.Lambda.Tools
```Execute unit tests
```
cd "BjjBuddy/test/BjjBuddy.Tests"
dotnet test
```Deploy function to AWS Lambda
```
cd "BjjBuddy/src/BjjBuddy"
dotnet lambda deploy-function
```