LambdaSharp.Tool
0.8.4.1
dotnet tool install --global LambdaSharp.Tool --version 0.8.4.1
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local LambdaSharp.Tool --version 0.8.4.1
#tool dotnet:?package=LambdaSharp.Tool&version=0.8.4.1
nuke :add-package LambdaSharp.Tool --version 0.8.4.1
LambdaSharp.Tool
LambdaSharp is a CLI and framework for serverless .NET Core application development on AWS. LambdaSharp uses a simple declarative syntax to generate sophisticated CloudFormation templates that provide simple, yet flexible, deployment options.
The objective of LambdaSharp is to accelerate the development pace of serverless solutions while helping developers adhere consistently to best practices to create scalable, observable, and modular systems.
Visit LambdaSharp.NET to learn more about building serverless .NET solutions on AWS.
Install LambdaSharp CLI
The LambdaSharp CLI is installed as a .NET Global Tool.
dotnet tool install -g LambdaSharp.Tool
Once installed, a deployment tier must be initialized.
lash init --quick-start
Deploy a LambdaSharp Module
Creating modules with Lambda functions and deploying them only requires a few steps.
# Create a new LambdaSharp module
lash new module MySampleModule
# Add a function to the LambdaSharp module
lash new function MyFunction --type generic
# Deploy the LambdaSharp module
lash deploy
The LambdaSharp CLI uses a YAML file to compile the C# projects, upload artifacts, and deploy the CloudFormation stack in one step. The YAML file describes the entire module including the inputs, outputs, variables, resources, and functions.
Module: MySampleModule
Items:
- Function: MyFunction
Memory: 128
Timeout: 30
The C# project contains the Lambda handler.
namespace MySampleModule.MyFunction {
public class FunctionRequest {
// add request fields
}
public class FunctionResponse {
// add response fields
}
public sealed class Function : ALambdaFunction<FunctionRequest, FunctionResponse> {
//--- Constructors ---
public Function() : base(new LambdaSharp.Serialization.LambdaSystemTextJsonSerializer()) { }
//--- Methods ---
public override Task InitializeAsync(LambdaConfig config)
=> Task.CompletedTask;
public override async Task<FunctionResponse> ProcessMessageAsync(FunctionRequest request) {
// add business logic
return new FunctionResponse();
}
}
}
License
Copyright (c) 2018-2022 LambdaSharp (λ#)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
0.8.4.1 | 370 | 4/18/2023 |
0.8.4 | 19,667 | 3/10/2022 |
0.8.3.5 | 544 | 3/4/2022 |
0.8.3.4 | 456 | 7/15/2021 |
0.8.3.3 | 1,118 | 7/15/2021 |
0.8.3.2 | 352 | 6/17/2021 |
0.8.3.1 | 395 | 5/28/2021 |
0.8.3 | 407 | 5/19/2021 |
0.8.2.4 | 442 | 4/30/2021 |
0.8.2.3 | 401 | 4/2/2021 |
0.8.2.2 | 409 | 3/18/2021 |
0.8.2.1 | 401 | 2/18/2021 |
0.8.2 | 1,309 | 2/16/2021 |
0.8.1.6 | 2,263 | 12/29/2020 |
0.8.1.5 | 527 | 12/26/2020 |
0.8.1.4 | 522 | 11/20/2020 |
0.8.1.3 | 538 | 10/21/2020 |
0.8.1.2 | 507 | 10/21/2020 |
0.8.1.1 | 500 | 8/31/2020 |
0.8.1 | 500 | 8/28/2020 |
0.8.1-rc1 | 336 | 8/24/2020 |
0.8.0.9 | 1,007 | 8/31/2020 |
0.8.0.8 | 573 | 8/4/2020 |
0.8.0.7 | 460 | 7/29/2020 |
0.8.0.7-rc3 | 371 | 7/27/2020 |
0.8.0.7-rc2 | 408 | 7/27/2020 |
0.8.0.7-rc1 | 358 | 7/27/2020 |
0.8.0.6 | 516 | 7/15/2020 |
0.8.0.5 | 494 | 7/2/2020 |
0.8.0.4 | 470 | 7/1/2020 |
0.8.0.3 | 520 | 6/19/2020 |
0.8.0.2 | 463 | 6/3/2020 |
0.8.0.1 | 524 | 5/18/2020 |
0.8.0 | 500 | 5/18/2020 |
0.7.0.17 | 769 | 5/8/2020 |
0.7.0.16 | 609 | 5/1/2020 |
0.7.0.15 | 557 | 4/24/2020 |
0.7.0.14 | 562 | 4/14/2020 |
0.7.0.13 | 673 | 4/9/2020 |
0.7.0.12 | 649 | 4/8/2020 |
0.7.0.11 | 636 | 3/31/2020 |
0.7.0.10 | 505 | 3/14/2020 |
0.7.0.9 | 682 | 2/25/2020 |
0.7.0.8 | 594 | 2/25/2020 |
0.7.0.7 | 675 | 1/31/2020 |
0.7.0.6 | 599 | 12/12/2019 |
0.7.0.5 | 579 | 10/25/2019 |
0.7.0.4 | 535 | 10/18/2019 |
0.7.0.3 | 936 | 10/3/2019 |
0.7.0.2 | 564 | 9/20/2019 |
0.7.0.1 | 547 | 9/12/2019 |
0.7.0 | 536 | 9/11/2019 |
0.6.1 | 598 | 9/5/2019 |
0.6.0.3 | 665 | 7/1/2019 |
0.6.0.2 | 546 | 6/27/2019 |
0.6.0.1 | 957 | 6/12/2019 |
0.6.0 | 685 | 5/10/2019 |
0.5.0.3 | 876 | 3/8/2019 |
0.5.0.2 | 716 | 3/1/2019 |
0.5.0.1 | 799 | 2/19/2019 |
0.5.0 | 691 | 2/12/2019 |