我的 Lambda 代码存储在 S3 存储桶中。我使用 CloudFormation 部署在子帐户中。
Lambda 代码片段:
def lambda_handler(event,context):
ids = ["${id}"]
CloudFormation 使用以下参数获取id:
Parameters:
id:
Type: String
Description: Name of id.
Default: abc
但是,id由于代码存储在 S3 存储桶中,因此不会在 lambda 中填充。
怎么办?