您好,下面是 clouformation,代码我们有 lambda 函数 s3 到 s3 复制的 python 代码片段。这里无法将目标存储桶从云形成参数传递到 python 代码片段,如 target_bucket = Ref: dstBucket
我现在正在硬编码 target_bucket = destination1 但我想作为 Ref 值传递
我尝试过不同的方法都没有成功。
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'objects from Prod bucket to Dev data bucket '
Parameters:
CustomerName:
Description: Customer Name
Type: String
Default: incoming
ProjectName:
Description: Project Name
Type: String
Default: TEST
ENV:
Description: Environment (dev, prd)
Type: String
Default: dev
srcBucket:
Description: Source Bucket that receives data from outside
Default: source1
Type: String
dstBucket:
Description: Destination Bucket …Run Code Online (Sandbox Code Playgroud)