I'm using the Node.js Express template with AWS Lambda in CodeStar and it all works really well, perfect for my use case, other than I can't seem to stop it from deploying both the staging and production environments with each and every commit of code.
Ideally I'd like it to push all commits to staging and then a manual push to production once the QA team have had a chance to take a look at it.
Now I've taken a look at the underlying structure, and I can see that in API Gateway there are two stages configured, prod and stage, and I can use these to set stage variables at least (though I'm not sure how to access them at present... more reading required!).
But in Lambda I can only see the one function, and it's the "newest" version, so I can't really figure out how to do what I need...?