An open API service indexing awesome lists of open source software.

https://github.com/eduherminio/aws_lambda_cloudformation_poc

AWS Lambda PoC (deployed using CloudFormation) using .NET Core 3.1
https://github.com/eduherminio/aws_lambda_cloudformation_poc

aws aws-lambda cloudformation dotnet-core

Last synced: 3 months ago
JSON representation

AWS Lambda PoC (deployed using CloudFormation) using .NET Core 3.1

Awesome Lists containing this project

README

          

# AWS Lambda CloudFormation PoC

## Requirements

An existing s3 bucket (named `test-lambda-artifact` in this example)

## Instructions

Install or update Amazon.Lambda.Tools

```bash
dotnet tool install -g Amazon.Lambda.Tools
dotnet tool update -g Amazon.Lambda.Tools
```

Deploy the serverless application

```bash
dotnet lambda deploy-serverless testLambdaCFStack -t serverless.template -sb test-lambda-artifact -sp TestLambdaCF/
```

Test the lambda function

```bash
dotnet lambda list-functions
dotnet lambda invoke-function -p "Hey!"
```

Cleanup

```bash
dotnet lambda delete-serverless testLambdaCFStack
```