AWS CodeCommit is a version control service hosted by AWS that you can use to privately store and manage assets (such as documents, source code, and binary files) in the cloud.
Setting up your local machine to use CodeCommit is not straightforward. You need to set up your cli profile and manage keys. You have to create users and keys in IAM. It can become annoying when you have to keep putting in your username and password every time you push a change. More importantly, you need to make sure that the solution is secure. Otherwise you might end up seeing your Organization getting famously breached like this.
So we looked for a solution to make life easier for CodeCommit users and secure at the same time. Luckily, AWS already has a managed service that is perfect for this requirement – AWS SSO.
In this post, I’ll show you how to set it up and how to use it from the command line to issue Git commands.