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
Trying to create a lambda layer consisting of just the ./node_modules fails, because the zip file created strips away the node_module parent directory (example). Ideally, source_dir should maintain the parent directory structure and allow you to strip away the parent directory using a value such as ./path/to/dir/**, but this would not be backwards compatible. Ways this could be solved without breaking backwards compatibility would be to add an ignore attribute that would be a regex, a target_dir attribute that would set the name of the parent directory inside of the zip file, or a boolean attribute save_parent_dir to copy the parent directory structure as well.
Trying to create a lambda layer consisting of just the
./node_modules
fails, because the zip file created strips away the node_module parent directory (example). Ideally,source_dir
should maintain the parent directory structure and allow you to strip away the parent directory using a value such as./path/to/dir/**
, but this would not be backwards compatible. Ways this could be solved without breaking backwards compatibility would be to add anignore
attribute that would be a regex, atarget_dir
attribute that would set the name of the parent directory inside of the zip file, or a boolean attributesave_parent_dir
to copy the parent directory structure as well.Terraform Version
Affected Resource(s)
Terraform Configuration Files
The text was updated successfully, but these errors were encountered: