I have a java application to be deployed as a Cloud Function. The application is packaged into a jar file. The deployment needs to be done via Terraform.
According to the documentation, the function can be deployed directly from the jar file using the --source
parameter:
gcloud functions deploy jar-example \
--entry-point=Example \
--runtime=java11 \
--trigger-http \
--source=target/deployment
However, the Terraform cloudfunctions_function doesn't seem to support it and requires a bucket to copy the jar there.
Is it possible to deploy Cloud Function via Terraform without the bucket?