

AWS Tools for PowerShell V4 has entered maintenance mode.

We recommend that you migrate to [AWS Tools for PowerShell V5](https://docs.aws.amazon.com/powershell/v5/userguide/). For additional details and information on how to migrate, please refer to our [maintenance mode announcement](https://aws.amazon.com/blogs/developer/aws-tools-for-powershell-v4-maintenance-mode-announcement/).

# AWS Lambda and AWS Tools for PowerShell


By using the [AWSLambdaPSCore](https://www.powershellgallery.com/packages/AWSLambdaPSCore) module, you can develop AWS Lambda functions in PowerShell Core 6.0 using the .NET Core 2.1 runtime. PowerShell developers can manage AWS resources and write automation scripts in the PowerShell environment by using Lambda. PowerShell support in Lambda lets you run PowerShell scripts or functions in response to any Lambda event, such as an Amazon S3 event or Amazon CloudWatch scheduled event. The AWSLambdaPSCore module is a separate AWS module for PowerShell; it is not part of the AWS Tools for PowerShell, nor does installing the AWSLambdaPSCore module install the AWS Tools for PowerShell.

After you install the AWSLambdaPSCore module, you can use any available PowerShell cmdlets—or develop your own—to author serverless functions. The AWS Lambda Tools for PowerShell module includes project templates for PowerShell-based serverless applications, and tools to publish projects to AWS.

AWSLambdaPSCore module support is available in all regions that support Lambda. For more information about supported regions, see the [AWS region table](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/).

## Prerequisites


The following steps are required before you can install and use the AWSLambdaPSCore module. For more detail about these steps, see [Setting Up a PowerShell Development Environment](https://docs.aws.amazon.com/lambda/latest/dg/lambda-powershell-setup-dev-environment.html) in the AWS Lambda Developer Guide.
+  **Install the correct release of PowerShell** – Lambda's support for PowerShell is based on the cross-platform PowerShell Core 6.0 release. You can develop PowerShell Lambda functions on Windows, Linux, or Mac. If you don’t have at least this release of PowerShell installed, instructions are available on the [Microsoft PowerShell documentation website](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell).
+  **Install the .NET Core 2.1 SDK** – Because PowerShell Core is based on .NET Core, the Lambda support for PowerShell uses the same .NET Core 2.1 Lambda runtime for both .NET Core and PowerShell Lambda functions. The Lambda PowerShell publishing cmdlets use the .NET Core 2.1 SDK to create the Lambda deployment package. The .NET Core 2.1 SDK is available from the [Microsoft Download Center](https://www.microsoft.com/net/download). Be sure to install the SDK, not the Runtime.

## Install the AWSLambdaPSCore Module


After completing the prerequisites, you are ready to install the AWSLambdaPSCore module. Run the following command in a PowerShell Core session.

```
PS> Install-Module AWSLambdaPSCore -Scope CurrentUser
```

You are ready to start developing Lambda functions in PowerShell. For more information about how to get started, see [Programming Model for Authoring Lambda Functions in PowerShell](https://docs.aws.amazon.com/lambda/latest/dg/powershell-programming-model.html) in the AWS Lambda Developer Guide.

## See Also

+  [Announcing Lambda Support for PowerShell Core on the AWS Developer Blog](https://aws.amazon.com/blogs/developer/announcing-lambda-support-for-powershell-core/) 
+  [AWSLambdaPSCore module on the PowerShell Gallery website](https://www.powershellgallery.com/packages/AWSLambdaPSCore/1.0.0.2) 
+  [Setting Up a PowerShell Development Environment](https://docs.aws.amazon.com/lambda/latest/dg/lambda-powershell-setup-dev-environment.html) 
+ [AWS Lambda Tools for Powershell on GitHub](https://github.com/aws/aws-lambda-dotnet/tree/master/PowerShell)
+  [AWS Lambda Console](https://console.aws.amazon.com/lambda/home) 