Giter VIP home page Giter VIP logo

aws_lambda_functions_templates's Introduction

AWS Lambda Functions Templates

https://github.com/aws/aws-lambda-dotnet

dotnet new -i "Amazon.Lambda.Templates::*"
dotnet new list --author AWS  

lambda.EmptyTopLevelFunction

serverless.Annotations

serverless.AspNetCoreMinimalAPI

serverless.AspNetCoreWebAPI

serverless.image.AspNetCoreWebAPI

serverless.AspNetCoreWebApp

lambda.CustomRuntimeFunction

lambda.DetectImageLabels

lambda.EmptyFunction

lambda.image.EmptyFunction

serverless.EmptyServerless

serverless.image.EmptyServerless

lambda.NativeAOT

lambda.Powertools

serverless.Powertools

lambda.SimpleApplicationLoadBalancerFunction

lambda.DynamoDB

lambda.KinesisFirehose

lambda.Kinesis

lambda.S3

lambda.SNS

lambda.SQS

lambda.LexBookTripSample

lambda.OrderFlowersChatbot

serverless.DetectImageLabels

serverless.NativeAOT

serverless.S3

serverless.WebSocketAPI

serverless.StepFunctionsHelloWorld

To get details about a template, you can use the help command.

dotnet new lambda.EmptyFunction --help

Template Instantiation Commands for .NET Core CLI.

Lambda Empty Function (C#)

Author: AWS

Options:

-p|--profile The AWS credentials profile set in aws-lambda-tools-defaults.json and used as the default profile when interacting with AWS. string - Optional

-r|--region The AWS region set in aws-lambda-tools-defaults.json and used as the default region when interacting with AWS.
string - Optional

The templates take two optional parameters to set the profile and region. These values are written to the aws-lambda-tools-default.json.

To create a function, run the following command

dotnet new lambda.EmptyFunction --name BlogFunction --profile default --region us-east-2

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 "BlogFunction/test/BlogFunction.Tests"
dotnet test

Deploy function to AWS Lambda

cd "BlogFunction/src/BlogFunction"
dotnet lambda deploy-function

aws_lambda_functions_templates's People

Contributors

luiscoco avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.