title: How to get the latest lambda version in cloudformation yml?
body: <p>I'm trying to reference an <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-eventtype" rel="noreferrer">edge lambda for cloudfront distribution</a> in cloudformation.</p>
  
  <p>What I have now is:</p>
  
  <pre><code>          LambdaFunctionARN:
              Fn::GetAtt: [BasicAuthLambdaFunction,Arn]
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p>An error occurred: GGGCloudFrontDistribution - The function
    ARN must reference a specific function version. (The ARN must end with
    the version number.)</p>
  </blockquote>
  
  <p>So.. is there some kind of technique to reference the latest version of the function?</p>