这是一个非常简单的Google Cloud Function,可将GCS存储桶与S3存储桶同步。
部署方式
该脚本使用如下所述的运行时配置: :
首先,您需要定义一些环境变量:
# Name of your GCP project
PROJECT=my-gcp-project
# Name for the runtime config (this MUST match the bucket name)
CONFIG_NAME=my-source-bucket
# AWS region in which your S3 bucket was created
S3_REGION=us-east-1
# Name of the S3 bucket
S3_TARGET_BUCKET=my-target-bucket
# Name for your Cloud Function
CLOUD_
评论0
最新资源