You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this error when run this command: terraform init terraform apply
Error: with module.redirect_externalurl_lambda.data.archive_file.zip_file_for_lambda, │ on .terraform/modules/redirect_externalurl_lambda/main.tf line 9, in data "archive_file" "zip_file_for_lambda": │ 9: data "archive_file" "zip_file_for_lambda" {
I also encountered this, but this was du to a misunderstanding how the variable lambda_code_source_dir works, or actually that there needs to be a certain structure.
If you check out variables.tfvariable file_globs you might see what I mean.<br >
The module basically zips all files in lambda_code_source_dir that match the entries in file_globs. So you either rename your files accordingly or extend the file_globs in the module definition.
However, I'm not sure this module is actively cared for. There is a pull request pending for a while concerning the default runtime and deprecation warnings about the S3 resources are popping up.
terraform -version
Terraform v1.0.11
on darwin_amd64
I get this error when run this command:
terraform init
terraform apply
Error:
with module.redirect_externalurl_lambda.data.archive_file.zip_file_for_lambda, │ on .terraform/modules/redirect_externalurl_lambda/main.tf line 9, in data "archive_file" "zip_file_for_lambda": │ 9: data "archive_file" "zip_file_for_lambda" {
This is my main.tf file
The text was updated successfully, but these errors were encountered: