I noticed Serverless will auto-increment the Lambda version, which is great for safely deploying updates. However, I’m wondering how to reference that version number in serverless.yml. For example, in a stepFunctions definition:
No, I definitely don’t want the $LATEST version. I’m looking to use the version of the function that was just auto-created by Serverless. I don’t think it’s possible, which is a bummer. It means I’ll have to have two separate YAML files/CloudFormation stacks, and one will use the outputs to get the Lambda ARNs (with version numbers).
This can be achieved with the [serverless-scriptable-plugin](https://github.com/weixu365/serverless-scriptable-plugin). As an example, I put a placeholder for the reference in my serverless.yml file