Skip to content

Commit

Permalink
Use custom FalconPy layer. Increase warmup timeout. Relates to #230.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed May 4, 2023
1 parent c78573e commit 7e7f9ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions s3-bucket-protection/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@ then
read -p "EC2 Instance Key Name: " ECKEY
read -p "Trusted IP address: " TRUSTED
UNIQUE=$(echo $RANDOM | md5sum | sed "s/[[:digit:].-]//g" | head -c 8)
rm lambda/falconpy-layer.zip >/dev/null 2>&1
curl -o lambda/falconpy-layer.zip https://falconpy.io/downloads/falconpy-layer.zip
# This demo will be using a custom version of the falconpy layer for now. - jshcodes@CrowdStrike 05.04.2023 #230
#rm lambda/falconpy-layer.zip >/dev/null 2>&1
#curl -o lambda/falconpy-layer.zip https://falconpy.io/downloads/falconpy-layer.zip
if ! [ -f demo/.terraform.lock.hcl ]; then
terraform -chdir=demo init
fi
terraform -chdir=demo apply -compact-warnings --var falcon_client_id=$FID \
--var falcon_client_secret=$FSECRET --var instance_key_name=$ECKEY \
--var trusted_ip=$TRUSTED/32 --var unique_id=$UNIQUE --auto-approve
echo -e "$RD\nPausing for 30 seconds to allow configuration to settle.$NC"
sleep 30
echo -e "$RD\nPausing for 60 seconds to allow configuration to settle.$NC"
sleep 60
all_done
exit 0
fi
Expand Down

0 comments on commit 7e7f9ec

Please sign in to comment.