terraform-google-scheduled-function icon indicating copy to clipboard operation
terraform-google-scheduled-function copied to clipboard

feat: Add files_to_exclude_in_source_dir variable to exclude unwanted…

Open davidg251 opened this issue 1 year ago • 3 comments

… files/folder in the function package.

davidg251 avatar Sep 05 '24 15:09 davidg251

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Sep 05 '24 15:09 google-cla[bot]

Hi guys,

I am using this module to create a scheduler to trigger a cloud function written in python. As part of the local development process the __pycache__ and venv folders are created, and the creation of the zip file was failing with

error creating archive: error archiving directory: lstat /usr/local/bin/python: no such file or directory

Normally, one wants to keep the folders metioned above to test the new changes on the function. That's the reason why I created this PR, just adding the variable files_to_exclude_in_source_dir to pass to the module terraform-google-modules/event-function/google used to create the function.

Cheers!

davidg251 avatar Sep 05 '24 15:09 davidg251

/gcbrun

apeabody avatar Sep 19 '24 19:09 apeabody

/gcbrun

apeabody avatar Oct 10 '24 21:10 apeabody