Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PSFalcon Layer #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions powershell-modules/PSFalcon/PSFalcon/Makefile
Original file line number Diff line number Diff line change
@@ -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

41 changes: 41 additions & 0 deletions powershell-modules/PSFalcon/template.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions powershell-modules/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|