My Lambda code is stored in a S3 bucket. I use CloudFormation to deploy in the child account.
Lambda code snippet:
def lambda_handler(event,context):
ids = ["${id}"]
The CloudFormation uses the parameters to take in the id
as:
Parameters:
id:
Type: String
Description: Name of id.
Default: abc
However the id
doesn't get populated in the lambda because the code is stored in the S3 bucket.
How to go about it?