FsLambda.Templates
1.0.15
dotnet new install FsLambda.Templates::1.0.15
This package contains a .NET Template Package you can call from the shell/command line.
FsLambda Templates
F# AWS Lambda templates with CDK infrastructure.
Quick Start
Install
From NuGet.org:
dotnet new install FsLambda.Templates
From GitHub Packages (alternative):
dotnet nuget add source https://nuget.pkg.github.com/totallymoney/index.json \
--name github --username YOUR_GITHUB_USERNAME --password YOUR_GITHUB_PAT
dotnet new install FsLambda.Templates --nuget-source github
Create a New App
NuGet-based (recommended):
dotnet new fslambda -n MyApp
cd MyApp
dotnet fsi build.fsx
Paket-based:
dotnet new fslambda-paket -n MyApp
cd MyApp
dotnet tool restore && dotnet paket install
dotnet fsi build.fsx
Target Framework (NuGet template only)
The NuGet template (fslambda) supports framework selection via -f or --framework:
# .NET 8.0 (default, LTS)
dotnet new fslambda -n MyApp
# .NET 10.0 (LTS)
dotnet new fslambda -n MyApp -f net10.0
Supported frameworks: net8.0, net10.0
Deploy to AWS
cd cdk
npx cdk deploy
Templates
| Short Name | Description |
|---|---|
fslambda |
NuGet with central package management (default) |
fslambda-paket |
Paket dependency management |
Project Structure
MyApp/
├── src/MyApp/ # Lambda handler
├── cdk/MyApp.CDK/ # CDK infrastructure (FsCDK)
├── tests/
│ ├── MyApp.UnitTests/ # Unit tests (Expecto)
│ └── MyApp.IntegrationTests/
├── build.fsx # Build script
├── docker-compose.yml # Local DynamoDB
└── .github/workflows/ # CI pipeline
Local Development
Run DynamoDB locally for integration tests:
docker compose up -d dynamodb init-dynamo
docker compose run --rm integration_tests
Update Templates
dotnet new uninstall FsLambda.Templates
dotnet new install FsLambda.Templates
License
MIT
-
.NETStandard 2.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.