Goa.Templates
0.7.1-preview
dotnet new install Goa.Templates::0.7.1-preview
Goa AWS Lambda Templates
Project templates for creating AWS Lambda functions using the Goa framework with built-in support for high-performance, AOT-compiled .NET applications.
Available Templates
API Gateway Lambda (goa.apigw)
Creates a Lambda function for API Gateway integration using ASP.NET Core.
Usage:
dotnet new goa.apigw -n MyApiFunction
Options:
--functionType- Choose API Gateway type:httpv2(default) - HTTP API with V2 payload formathttpv1- HTTP API with V1 payload formatrestapi- REST API
--includeOpenApi- Include OpenAPI documentation with Scalar UI (default: false)
Features:
- ASP.NET Core routing and endpoints
- JSON source generation for optimal performance
- AOT compilation ready
- Sample
/pingendpoint included
API Gateway Authorizer (goa.authorizer)
Creates a Lambda function for API Gateway custom authorization.
Usage:
dotnet new goa.authorizer -n MyAuthorizer
Options:
--authorizerType- Choose authorizer type:token(default) - TOKEN authorizer validates using authorization tokenrequest- REQUEST authorizer validates using request parameters
Features:
- TOKEN and REQUEST authorizer support
- PolicyBuilder fluent API for IAM policies
- Support for authorization context data
- Usage plan integration support
- AOT compilation ready
DynamoDB Lambda (goa.dynamodb)
Creates a Lambda function for processing DynamoDB streams.
Usage:
dotnet new goa.dynamodb -n MyDynamoFunction
Features:
- Batch processing of DynamoDB stream records
- Dependency injection support
- Record failure handling
- AOT compilation ready
S3 Lambda (goa.s3)
Creates a Lambda function for processing S3 events.
Usage:
dotnet new goa.s3 -n MyS3Function
Options:
--processingType- Choose processing mode:batch(default) - Process S3 events as a batchsingle- Process S3 events one at a time
Features:
- Single or batch processing of S3 events
- Support for all S3 event types (ObjectCreated, ObjectRemoved, etc.)
- Event failure handling
- Dependency injection support
- AOT compilation ready
Kinesis Lambda (goa.kinesis)
Creates a Lambda function for processing Kinesis stream events.
Usage:
dotnet new goa.kinesis -n MyKinesisFunction
Features:
- Batch processing of Kinesis stream records
- Base64 data decoding support
- Record failure handling
- Dependency injection support
- AOT compilation ready
EventBridge Lambda (goa.eventbridge)
Creates a Lambda function for processing EventBridge events.
Usage:
dotnet new goa.eventbridge -n MyEventBridgeFunction
Features:
- Single event processing
- Access to event source, detail type, and custom detail data
- Event failure handling
- Dependency injection support
- AOT compilation ready
SQS Lambda (goa.sqs)
Creates a Lambda function for processing SQS messages.
Usage:
dotnet new goa.sqs -n MySqsFunction
Options:
--processingType- Choose processing mode:batch(default) - Process SQS messages as a batchsingle- Process SQS messages one at a time
Features:
- Single or batch processing of SQS messages
- Access to message body, attributes, and metadata
- Message failure handling for retry/DLQ
- Dependency injection support
- AOT compilation ready
Getting Started
Install the template package:
dotnet new install Goa.TemplatesCreate a new function:
# Basic API Gateway function dotnet new goa.apigw -n MyFunction # With OpenAPI documentation dotnet new goa.apigw -n MyFunction --includeOpenApi true # API Gateway authorizer (TOKEN type) dotnet new goa.authorizer -n MyAuthorizer # API Gateway authorizer (REQUEST type) dotnet new goa.authorizer -n MyAuthorizer --authorizerType request # DynamoDB stream function dotnet new goa.dynamodb -n MyDynamoFunction # S3 event function (batch processing) dotnet new goa.s3 -n MyS3Function # S3 event function (single processing) dotnet new goa.s3 -n MyS3Function --processingType single # Kinesis stream function dotnet new goa.kinesis -n MyKinesisFunction # EventBridge event function dotnet new goa.eventbridge -n MyEventBridgeFunction # SQS message function (batch processing) dotnet new goa.sqs -n MySqsFunction # SQS message function (single processing) dotnet new goa.sqs -n MySqsFunction --processingType single cd MyFunctionBuild and deploy:
dotnet publish -c Release # Deploy using your preferred method (SAM, CDK, etc.)
Requirements
- .NET 10.0 SDK or later
- AWS CLI configured for deployment
Learn More
Visit the Goa documentation for more information about the framework and deployment options.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.1-preview | 48 | 1/26/2026 |
| 0.7.0-preview | 49 | 1/26/2026 |
| 0.6.0-preview.1 | 191 | 12/5/2025 |
| 0.6.0-preview | 676 | 12/3/2025 |
| 0.2.1-preview | 46 | 1/20/2026 |
| 0.2.0-preview | 60 | 1/14/2026 |
| 0.1.9-preview | 69 | 1/1/2026 |
| 0.1.8-preview | 236 | 12/15/2025 |
| 0.1.7-preview | 254 | 12/15/2025 |
| 0.1.6-preview | 238 | 12/15/2025 |
| 0.1.5-preview | 240 | 12/15/2025 |
| 0.1.4-preview | 240 | 12/15/2025 |
| 0.1.3-preview | 119 | 12/12/2025 |
| 0.1.2-preview | 420 | 12/11/2025 |
| 0.1.1-preview | 427 | 12/11/2025 |
| 0.1.0-preview | 427 | 12/10/2025 |
| 0.0.8-preview | 423 | 12/10/2025 |
| 0.0.7-preview | 418 | 12/8/2025 |
| 0.0.6-preview.2 | 425 | 12/8/2025 |
| 0.0.5-preview | 242 | 11/2/2025 |
| 0.0.4-preview | 186 | 10/25/2025 |
| 0.0.3-preview.4 | 192 | 10/25/2025 |
| 0.0.3-preview.2 | 223 | 9/28/2025 |
| 0.0.3-preview.1 | 217 | 8/23/2025 |
| 0.0.2-preview.2.3 | 280 | 8/18/2025 |
| 0.0.2-preview.2.2 | 277 | 8/17/2025 |
| 0.0.2-preview.2.1 | 247 | 8/17/2025 |
| 0.0.2-preview.2 | 275 | 8/9/2025 |
| 0.0.0-alpha.0.32 | 276 | 12/7/2024 |
| 0.0.0-alpha.0.20 | 242 | 10/27/2024 |