Google cloud platform 云构建可以部署多个云功能吗?

Google cloud platform 云构建可以部署多个云功能吗?,google-cloud-platform,google-cloud-functions,google-cloud-build,Google Cloud Platform,Google Cloud Functions,Google Cloud Build,你好。我是GCP新手,想尝试云功能。我在AWS Lambda有过短暂的经验 我的问题是: 我正在尝试寻找云构建是否可以部署多个云功能。在AWS中,它有一个SAM模板,我们可以指定每个lambda函数。GCP(或具体的云构建)也支持这一点吗?是的,这是完全可能的 在gcp中,您使用名为gcloud的cli工具部署云功能,该工具在cloud build上也可用,命令基本上如下所示: gcloud functions deploy NAME --runtime RUNTIME TRIGGER [FLA

你好。我是GCP新手,想尝试云功能。我在AWS Lambda有过短暂的经验

我的问题是:
我正在尝试寻找云构建是否可以部署多个云功能。在AWS中,它有一个SAM模板,我们可以指定每个lambda函数。GCP(或具体的云构建)也支持这一点吗?

是的,这是完全可能的

在gcp中,您使用名为gcloud的cli工具部署云功能,该工具在cloud build上也可用,命令基本上如下所示:

gcloud functions deploy NAME --runtime RUNTIME TRIGGER [FLAGS...]
在cloud build中,您只需指示管道将gcloud与这些特定命令一起使用,以便部署所需的功能,例如:

steps:
  - name: "gcr.io/cloud-builders/gcloud"
    args: ['functions ', 'deploy ', 'function1']
  - name: "gcr.io/cloud-builders/gcloud"
    args: ['functions ', 'deploy ', 'function2']
timeout: "1800s"

是的,这是完全可能的

在gcp中,您使用名为gcloud的cli工具部署云功能,该工具在cloud build上也可用,命令基本上如下所示:

gcloud functions deploy NAME --runtime RUNTIME TRIGGER [FLAGS...]
在cloud build中,您只需指示管道将gcloud与这些特定命令一起使用,以便部署所需的功能,例如:

steps:
  - name: "gcr.io/cloud-builders/gcloud"
    args: ['functions ', 'deploy ', 'function1']
  - name: "gcr.io/cloud-builders/gcloud"
    args: ['functions ', 'deploy ', 'function2']
timeout: "1800s"