aws-lambda-powershell-runtime icon indicating copy to clipboard operation
aws-lambda-powershell-runtime copied to clipboard

Installing modules example

Open alexandroivaldez opened this issue 1 year ago • 1 comments

Would it be possible to add a walkthrough or example of how to add PowerShell modules, for example "Exchange Online PowerShell V3" module?

alexandroivaldez avatar Jan 11 '24 21:01 alexandroivaldez

hi @alexandroivaldez , I just work on this one for my project, you can check and use powershell-modules/AWSToolsforPowerShell/AWS.Tools.S3EventBridge/build-AWSToolsLayer.ps1 as example, replace the url in this file to the url to download your module you want,

And in your lambda function, you have to point directly to the file psm1, in this case this is "/opt/modules/netCore/ExchangeOnlineManagement.psm1".

ghost avatar Mar 26 '24 11:03 ghost