-
Hello, hoping to get some assistance to resolve my deployment issue. I have my s3-bucket-protection root directory with all of the terraform files and the existing.sh script. I've ran this deployment in the past with no issue, but running in to the below error after trying to re-deploy in a new environment. ./existing.sh add
This script should be executed from the s3-bucket-protection root directory.
CrowdStrike API Client ID:
CrowdStrike API Client SECRET:
Bucket name: bucket name here
Error handling -chdir option: chdir existing: no such file or directory
Error handling -chdir option: chdir existing: no such file or directory Here's the root directory I'm running the script out of: s3-bucket-protection $ ls
bucket.tf iam.tf lambda-function.tf ssm.tf
existing.sh lambda region.tf variables.tf |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @jaycrast - It looks like we're executing Another option is to remove the
|
Beta Was this translation helpful? Give feedback.
-
Hey @jaycrast - As mentioned by @jshcodes it seems like you are just running into some issues since you just grabbed some files as opposed to using the parent directory. You can follow the below to start from a clean slate to see if it helps: # Clone or unzip the repo
git clone https://github.com/CrowdStrike/Cloud-AWS.git
# Navigate to the parent dir
cd Cloud-AWS/s3-bucket-protection
# If you need to make any changes to the terraform files (such as changing the AWS region)
# make them in the existing directory
# From here you should be able to run the script
./existing.sh add Let us know if that helps or if you run into any other issues. |
Beta Was this translation helpful? Give feedback.
This one is because the generated zip file for the lambda is empty. (This is definitely not right.)
Side note: Deprecation warnings are annoying, and shouldn't be preventing deployment... but to be on the safe side, have you downloaded the most recent copies of the existing terraform files? There was an update to these (specifically
lambda-function.tf
) last month.