I am using terraform to deploy a python cloud function, similar to the official example, things are working as expected but now I want to use protobuf, which requires extra compile step, I know cloud function is built using cloud build and I am trying to squeeze the proto compiler command into it.
the terraform build_config doesn't seems to take in a custom cloudbuild.yaml but I added one anyway, under my functions root directory as suggested by Gemini, however it didn't work, I checked the latest cloud build log and my changes did not take effect.
My current workaround is to compile the proto file in my local working directory before the function zip is created and uploaded, but I would like to automate it.