LambdaSharp.Tool 0.8.4

.NET 6.0
dotnet tool install --global LambdaSharp.Tool --version 0.8.4
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
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=LambdaSharp.Tool&version=0.8.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package LambdaSharp.Tool --version 0.8.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.8.4 139 3/10/2022
0.8.3.5 83 3/4/2022
0.8.3.4 250 7/15/2021
0.8.3.3 182 7/15/2021
0.8.3.2 171 6/17/2021
0.8.3.1 172 5/28/2021
0.8.3 172 5/19/2021
0.8.2.4 222 4/30/2021
0.8.2.3 174 4/2/2021
0.8.2.2 178 3/18/2021
0.8.2.1 194 2/18/2021
0.8.2 185 2/16/2021
0.8.1.6 1,530 12/29/2020
0.8.1.5 290 12/26/2020
0.8.1.4 287 11/20/2020
0.8.1.3 296 10/21/2020
0.8.1.2 286 10/21/2020
0.8.1.1 318 8/31/2020
0.8.1 273 8/28/2020
0.8.1-rc1 238 8/24/2020
0.8.0.9 785 8/31/2020
0.8.0.8 385 8/4/2020
0.8.0.7 302 7/29/2020
0.8.0.7-rc3 291 7/27/2020
0.8.0.7-rc2 291 7/27/2020
0.8.0.7-rc1 234 7/27/2020
0.8.0.6 306 7/15/2020
0.8.0.5 280 7/2/2020
0.8.0.4 273 7/1/2020
0.8.0.3 311 6/19/2020
0.8.0.2 287 6/3/2020
0.8.0.1 315 5/18/2020
0.8.0 299 5/18/2020
0.7.0.17 567 5/8/2020
0.7.0.16 353 5/1/2020
0.7.0.15 331 4/24/2020
0.7.0.14 317 4/14/2020
0.7.0.13 467 4/9/2020
0.7.0.12 451 4/8/2020
0.7.0.11 416 3/31/2020
0.7.0.10 296 3/14/2020
0.7.0.9 520 2/25/2020
0.7.0.8 394 2/25/2020
0.7.0.7 455 1/31/2020
0.7.0.6 403 12/12/2019
0.7.0.5 361 10/25/2019
0.7.0.4 322 10/18/2019
0.7.0.3 743 10/3/2019
0.7.0.2 349 9/20/2019
0.7.0.1 355 9/12/2019
0.7.0 349 9/11/2019
0.6.1 380 9/5/2019
0.6.0.3 453 7/1/2019
0.6.0.2 358 6/27/2019
0.6.0.1 747 6/12/2019
0.6.0 467 5/10/2019
0.5.0.3 656 3/8/2019
0.5.0.2 505 3/1/2019
0.5.0.1 560 2/19/2019
0.5.0 470 2/12/2019