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 258 4/18/2023
0.8.4 13,496 3/10/2022
0.8.3.5 504 3/4/2022
0.8.3.4 424 7/15/2021
0.8.3.3 1,088 7/15/2021
0.8.3.2 339 6/17/2021
0.8.3.1 374 5/28/2021
0.8.3 376 5/19/2021
0.8.2.4 405 4/30/2021
0.8.2.3 363 4/2/2021
0.8.2.2 380 3/18/2021
0.8.2.1 372 2/18/2021
0.8.2 1,297 2/16/2021
0.8.1.6 2,250 12/29/2020
0.8.1.5 500 12/26/2020
0.8.1.4 486 11/20/2020
0.8.1.3 492 10/21/2020
0.8.1.2 479 10/21/2020
0.8.1.1 488 8/31/2020
0.8.1 471 8/28/2020
0.8.1-rc1 327 8/24/2020
0.8.0.9 970 8/31/2020
0.8.0.8 547 8/4/2020
0.8.0.7 449 7/29/2020
0.8.0.7-rc3 345 7/27/2020
0.8.0.7-rc2 375 7/27/2020
0.8.0.7-rc1 332 7/27/2020
0.8.0.6 491 7/15/2020
0.8.0.5 465 7/2/2020
0.8.0.4 441 7/1/2020
0.8.0.3 494 6/19/2020
0.8.0.2 439 6/3/2020
0.8.0.1 494 5/18/2020
0.8.0 488 5/18/2020
0.7.0.17 745 5/8/2020
0.7.0.16 568 5/1/2020
0.7.0.15 538 4/24/2020
0.7.0.14 534 4/14/2020
0.7.0.13 655 4/9/2020
0.7.0.12 638 4/8/2020
0.7.0.11 611 3/31/2020
0.7.0.10 470 3/14/2020
0.7.0.9 671 2/25/2020
0.7.0.8 585 2/25/2020
0.7.0.7 650 1/31/2020
0.7.0.6 574 12/12/2019
0.7.0.5 560 10/25/2019
0.7.0.4 512 10/18/2019
0.7.0.3 925 10/3/2019
0.7.0.2 535 9/20/2019
0.7.0.1 525 9/12/2019
0.7.0 512 9/11/2019
0.6.1 578 9/5/2019
0.6.0.3 644 7/1/2019
0.6.0.2 525 6/27/2019
0.6.0.1 930 6/12/2019
0.6.0 658 5/10/2019
0.5.0.3 848 3/8/2019
0.5.0.2 690 3/1/2019
0.5.0.1 764 2/19/2019
0.5.0 668 2/12/2019