Because cloud function uses goland 1.13 and since 1.12 version of functionbeat is using goland 1.15 the deployment doesn't work.
At the end of the deployment those errors appear :
DEBUG [gcp] gcp/cli_manager.go:47 Deploy finish for function 'jslater-pubsub' Function: jslater-pubsub, could not deploy, error: error while creating function (code: 3): Build failed: # pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:112:3: unknown field 'VerifyConnection' in struct literal of type tls.Config src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:123:4: unknown field 'VerifyConnection' in struct literal of type tls.Config src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:141:4: unknown field 'VerifyConnection' in struct literal of type tls.Config src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:149:8: config.VerifyConnection undefined (type *tls.Config has no field or method VerifyConnection); Error ID: 6191efcd 2021-04-03T16:55:49.929-0700 DEBUG [cli-handler] cmd/cli_handler.go:62 Deploy execution ended Fail to deploy 1 function(s)
An issue has been open for months now but the topic seems dead as a doornail -> functionbeat 7.12 can't deploy -- unknown field 'VerifyConnection' in struct literal of type tls.Config · Issue #24925 · elastic/beats · GitHub
Yes some feature of functionbeat on cloud function are still in beta. But in this case the issue is quite critical. Does anyone know how much time is usually takes for the fix to come out ?