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 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|