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