git clone https://github.com/aws-samples/devsecops-workshop-on-aws
cd devsecops-workshop-on-aws
cloneUrlHttp URL
in the response from the CLI.aws codecommit create-repository --repository-name wordpress-cfn --repository-description "This template installs WordPress with a local MySQL database for storage"
pip install git-remote-codecommit
git init && git remote add AWSCodeCommit codecommit::eu-west-1://wordpress-cfn
git clone https://github.com/awslabs/git-secrets.git
cd git-secrets && make install && cd ..
git secrets --install
git secrets --register-aws
git push AWSCodeCommit master
git-secrets scans commits, commit messages, and –no-ff merges to prevent adding secrets into your git repositories. If a commit, commit message, or any commit in a –no-ff merge history matches one of your configured prohibited regular expression patterns, then the commit is rejected.