From 39497887093c6457e9625d9ee66ec1ed50c08206 Mon Sep 17 00:00:00 2001 From: sholland-bamboohealth Date: Wed, 30 Aug 2023 11:06:46 -0400 Subject: [PATCH 1/2] added PSFalcon --- powershell-modules/PSFalcon/PSFalcon/Makefile | 13 ++++++ powershell-modules/PSFalcon/template.yml | 41 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 powershell-modules/PSFalcon/PSFalcon/Makefile create mode 100644 powershell-modules/PSFalcon/template.yml diff --git a/powershell-modules/PSFalcon/PSFalcon/Makefile b/powershell-modules/PSFalcon/PSFalcon/Makefile new file mode 100644 index 0000000..3b226a4 --- /dev/null +++ b/powershell-modules/PSFalcon/PSFalcon/Makefile @@ -0,0 +1,13 @@ +build-PSFalconLayer: + # Download AWSToolsLayer module binaries + curl -L -o $(ARTIFACTS_DIR)/psfalcon.zip https://psg-prod-eastus.azureedge.net/packages/psfalcon.2.2.4.nupkg + mkdir -p $(ARTIFACTS_DIR)/modules + mkdir -p $(ARTIFACTS_DIR)/modules/PSFalcon + mkdir -p $(ARTIFACTS_DIR)/modules/PSFalcon/2.2.4 + + unzip $(ARTIFACTS_DIR)/psfalcon.zip -d $(ARTIFACTS_DIR)/modules/PSFalcon/2.2.4/ + + #rm $(ARTIFACTS_DIR)/PSFalcon.2.2.5.zip + rm $(ARTIFACTS_DIR)/psfalcon.zip + #rm -rf $(ARTIFACTS_DIR)/folder/psfalcon-master + \ No newline at end of file diff --git a/powershell-modules/PSFalcon/template.yml b/powershell-modules/PSFalcon/template.yml new file mode 100644 index 0000000..7da4e9b --- /dev/null +++ b/powershell-modules/PSFalcon/template.yml @@ -0,0 +1,41 @@ +AWSTemplateFormatVersion: '2010-09-09' +Transform: AWS::Serverless-2016-10-31 +Description: powershell-layer-PSFalcon +########################################################################## +# Parameters & Globals # +########################################################################## +Globals: + Function: + Tracing: Active + Tags: + Application: powershell-layer-PSFalcon +Resources: +########################################################################## +# Lambda layers # +########################################################################## + PSFalconLayer: + Type: AWS::Serverless::LayerVersion + Properties: + LayerName: PSFalcon + Description: Layer containing PSFalcon + ContentUri: PSFalcon + CompatibleRuntimes: + - provided.al2 + RetentionPolicy: Delete + Metadata: + BuildMethod: makefile + PSFalconParameter: + Type: AWS::SSM::Parameter + Properties: + Name: lambda-powershell-PSFalcon-latest-version-arn + Description: PSFalcon Layer Name + Type: String + Value: !Ref PSFalconLayer + +########################################################################## +# OUTPUTS # +########################################################################## +Outputs: + PSFalconLayer: + Value: !Ref PSFalconLayer + Description: PSFalconLayer Layer ARN \ No newline at end of file From 954d80516587533da4573789b12645fbdbca49ea Mon Sep 17 00:00:00 2001 From: sholland-bamboohealth Date: Wed, 30 Aug 2023 11:07:18 -0400 Subject: [PATCH 2/2] updated readme --- powershell-modules/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/powershell-modules/readme.md b/powershell-modules/readme.md index 742a39f..b146c08 100644 --- a/powershell-modules/readme.md +++ b/powershell-modules/readme.md @@ -10,3 +10,4 @@ See further instructions within the subfolders |:---|:---| |[AWSToolsforPowerShell](powershell-modules/AWSToolsforPowerShell/)|AWS Tools for PowerShell | |[VMwarePowerCLI](powershell-modules/VMwarePowerCLI/)|VMware PowerCLI| +|[PSFalcon](powershell-modules/PSFalcon/)|Crowdstrikes PSFalcon|