I've a question regarding AutoPublishAlias property in SAM.
I'm looking for a way to publish multiple lambda versions and use API gateway stage variables to control access specific lambda function versions as explained in the following blog post.
https://aws.amazon.com/blogs/compute/using-api-gateway-stage-variables-to-manage-lambda-functions/
But with AutoPublishAlias property it looks like only one lambda version can exist at a time. How do I cater to this requirement with SAM or should I be using aws cli to publish version and alias in this case?
PS: I've already reviewed the following question which has a similar requirement.