From 6fee7776baaf1a6f0280763a88b4dffd6ab1c852 Mon Sep 17 00:00:00 2001 From: Joshua Hiller Date: Thu, 4 May 2023 10:39:40 -0400 Subject: [PATCH] Use custom FalconPy layer. Increase warmup timeout. Relates to #230. --- s3-bucket-protection/demo.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/s3-bucket-protection/demo.sh b/s3-bucket-protection/demo.sh index 87e64e8..a43cbbe 100755 --- a/s3-bucket-protection/demo.sh +++ b/s3-bucket-protection/demo.sh @@ -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