Building Lambda functions with PowerShell - Amazon Lambda
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Building Lambda functions with PowerShell

The following sections explain how common programming patterns and core concepts apply when you author Lambda function code in PowerShell.

Lambda provides the following sample applications for PowerShell:

  • blank-powershell – A PowerShell function that shows the use of logging, environment variables, and the Amazon SDK.

Before you get started, you must first set up a PowerShell development environment. For instructions on how to do this, see Setting Up a PowerShell Development Environment.

To learn about how to use the AWSLambdaPSCore module to download sample PowerShell projects from templates, create PowerShell deployment packages, and deploy PowerShell functions to the Amazon Cloud, see Deploy PowerShell Lambda functions with .zip file archives.

Lambda provides the following runtimes for .NET languages:

.NET
Name Identifier Operating system Deprecation date Block function create Block function update

.NET 8

dotnet8

Amazon Linux 2023

.NET 7 (container only)

dotnet7

Amazon Linux 2

May 14, 2024

.NET 6

dotnet6

Amazon Linux 2

Nov 12, 2024

Feb 28, 2025

Mar 31, 2025