I am on a team of developers using Git as our version control.
We want to have a minimum of 3 stages of our development process: staging, dev, and production.
The only thing that should change between these stages is a single config file, to tell the Serverless framework what to name the lambda functions, S3 buckets, and any other resource that needs to be created for the CloudFormation stack.
However, this makes source control a bit harder. If we put the config files directly in the source code, then we have to make sure that those files don't get overridden when we commit/push to origin. But the CodeBuild has to have access to it somehow, and it has to be sure to grab the right config file for the specified stage.
I would prefer a solution to this issue that is a part of the AWS ecosystem.