我的 Lambda 代码存储在 S3 存储桶中。我使用 CloudFormation 在子帐户中进行部署。
Lambda 代码片段:
def lambda_handler(event,context):
ids = ["${id}"]
Run Code Online (Sandbox Code Playgroud)
CloudFormation 使用参数将以下内容id作为:
Parameters:
id:
Type: String
Description: Name of id.
Default: abc
Run Code Online (Sandbox Code Playgroud)
但是,id不会在 lambda 中填充,因为代码存储在 S3 存储桶中。
怎么办?