You can now make an initial commit when you create an AWS CodeCommit repository in your AWS CloudFormation stack.  

from Recent Announcements https://aws.amazon.com/about-aws/whats-new/2019/05/aws-codecommit-now-supports-the-ability-to-make-an-initial-commit/