AWS .NET Tools and Templates for Command Line
Want to learn more about AWS Lambda and .NET? Check out my A Cloud Guru course on ASP.NET Web API and Lambda.
There are many dotnet
and command line tools you can use when developing AWS applications on .NET, here are some of them. If you know of other ones, please get in touch.
Lambda Templates
These templates help you create .NET projects that run on Lambda.
dotnet new --install Amazon.Lambda.Templates
Run the below to see the list of Lambda templates -
dotnet new lambda --list
Lambda Tools
These tools help you build your project, deploy it to a Lambda, run it, update it, delete it, and more.
dotnet tool install -g Amazon.Lambda.Tools
.NET Mock Lambda Test Tool
This lets you test your code in an emulated Lambda environment. You can even attach and IDE to let you debug your way through the code.
Usage instructions can be found here.
dotnet tool install -g Amazon.Lambda.TestTool-6.0
ECS Tools
This tool helps you build Docker images and deploy Docker containers on ECS clusters.
dotnet tool install -g Amazon.ECS.Tools
Elastic Beanstalk
This tool helps you build and deploy to Elastic Beanstalk.
dotnet tool install -g Amazon.ElasticBeanstalk.Tools
.NET Deployment Tool
Guides you through deploying an application on AWS, helping you select the appropriate hosting service.
dotnet tool install -g aws.deploy.cli
Copilot CLI
A tool to build, deploy, and manage containerized applications on App Runner, ECS, and Fargate. Find out more here.
brew install aws/tap/copilot-cli
If you don’t use Homebrew, get the binaries.
Tools for PowerShell
Tools to manage services from PowerShell and PowerShell scripts. If you are using Linux or Mac get PowerShell Core.
Install-Module -Name AWS.Tools.Common
AWS CLI
Downloading this tool varies depending on your operating system.
See here for download instructions.
With this, you can do pretty much anything from the command line.