LambdaSharp.Tool 0.8.4.1

dotnet tool install --global LambdaSharp.Tool --version 0.8.4.1                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local LambdaSharp.Tool --version 0.8.4.1                
This package contains a .NET tool you can call from the shell/command line.
#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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.8.4.1 371 4/18/2023
0.8.4 20,049 3/10/2022
0.8.3.5 545 3/4/2022
0.8.3.4 457 7/15/2021
0.8.3.3 1,119 7/15/2021
0.8.3.2 353 6/17/2021
0.8.3.1 396 5/28/2021
0.8.3 408 5/19/2021
0.8.2.4 443 4/30/2021
0.8.2.3 402 4/2/2021
0.8.2.2 410 3/18/2021
0.8.2.1 402 2/18/2021
0.8.2 1,310 2/16/2021
0.8.1.6 2,264 12/29/2020
0.8.1.5 528 12/26/2020
0.8.1.4 523 11/20/2020
0.8.1.3 542 10/21/2020
0.8.1.2 508 10/21/2020
0.8.1.1 501 8/31/2020
0.8.1 501 8/28/2020
0.8.1-rc1 337 8/24/2020
0.8.0.9 1,008 8/31/2020
0.8.0.8 574 8/4/2020
0.8.0.7 461 7/29/2020
0.8.0.7-rc3 372 7/27/2020
0.8.0.7-rc2 409 7/27/2020
0.8.0.7-rc1 359 7/27/2020
0.8.0.6 517 7/15/2020
0.8.0.5 495 7/2/2020
0.8.0.4 471 7/1/2020
0.8.0.3 521 6/19/2020
0.8.0.2 464 6/3/2020
0.8.0.1 525 5/18/2020
0.8.0 501 5/18/2020
0.7.0.17 770 5/8/2020
0.7.0.16 610 5/1/2020
0.7.0.15 558 4/24/2020
0.7.0.14 566 4/14/2020
0.7.0.13 674 4/9/2020
0.7.0.12 650 4/8/2020
0.7.0.11 637 3/31/2020
0.7.0.10 506 3/14/2020
0.7.0.9 683 2/25/2020
0.7.0.8 595 2/25/2020
0.7.0.7 676 1/31/2020
0.7.0.6 600 12/12/2019
0.7.0.5 582 10/25/2019
0.7.0.4 536 10/18/2019
0.7.0.3 937 10/3/2019
0.7.0.2 565 9/20/2019
0.7.0.1 548 9/12/2019
0.7.0 537 9/11/2019
0.6.1 599 9/5/2019
0.6.0.3 666 7/1/2019
0.6.0.2 547 6/27/2019
0.6.0.1 960 6/12/2019
0.6.0 686 5/10/2019
0.5.0.3 877 3/8/2019
0.5.0.2 717 3/1/2019
0.5.0.1 800 2/19/2019
0.5.0 692 2/12/2019