The Git-compatible AWS CodeCommit version control system is the next step in Amazon’s plan to stitch DevOps into the fabric of its core services.
One of the most basic collaboration tools in today’s development world is the version control system, git. Git is all about helping people work together on their code and is a major engine behind the growing power of open source software. Touch any open source project, and it’s nearly certain that you’ll find its code shared somewhere in GitHub, the SaaS Git tool. So just what value does Amazon hope to add with their new service, AWS CodeCommit?
Here’s how they describe it:
AWS CodeCommit is a fully-managed source control service that makes it easy for companies to host secure and highly scalable private Git repositories. CodeCommit eliminates the need to operate your own source control system or worry about scaling its infrastructure. You can use CodeCommit to securely store anything from source code to binaries, and it works seamlessly with your existing Git tools.
In other words, AWS CodeCommit is a version control service, hosted by Amazon Web Services, that you can use to privately store and manage assets in the cloud and integrate with AWS services. The two key elements here are integration with other AWS services, and the security and reliability that comes with AWS management.
All you need to do is to create a CodeCommit repo and assign permissions, and your users can begin committing their code.
AWS CodeCommit: The benefits
Here, in a bit more detail, are some of the built-in benefits AWS CodeCommit offers over the obvious “competition.”
- Managed Service: CodeCommit is fully managed, distributed, and fault-tolerant and carries no administrative overhead. It is elastic and, as mentioned, integrated with other AWS Services.
- High Availability: Data is replicated across availability zones.
- Store Anything: Not just source code, but documents and binary files, too. There is no limit to the size of a repo.
- AWS Security: CodeCommit is integrated with AWS IAM. Data is encrypted at rest.
- Git Compatible: Users can migrate their existing Git repositories.
AWS CodeCommit essentials
Whether you’re considering switching your team to CodeCommit or building an entirely new repository, you’ll need to know about its essential coordinates. So just how compatible is it? Here are its available protocols:
- HTTPS: Git uses the cryptographic version of a user’s IAM credentials during the authentication process. The user will need to set up the credential helper for Git in the AWS CLI or AWS’s .NET SDK.
- SSH: Users need public and private keys (.pem & .ppk files) for handshaking during authentication. The private key is stored in local machine and the public key is used on the IAM side.
And here’s the latest run down on version compatibility:
- Git: AWS CodeCommit supports Git v1.7.9 and higher.
- CURL: You need Curl v7.33 and higher with CodeCommit.
AWS CodeCommit Commands
To configure CodeCommit, use the aws configure command. The command will prompt for your access_key, secret_key, region-name (the only option you’ll get right now is us-east-1) and output format (JSON).
CodeCommit commands should, in general, be strongly reminiscent of Git.
aws codecommit help
A create-branch command has the following options:
create-branch --repository-name <value> --branch-name <value> --commit-id <value> [--cli-input-json <value>] [--generate-cli-skeleton]
Here’s the create-repository command:
create-repository --repository-name <value> [--repository-description <value>] [--cli-input-json <value>] [--generate-cli-skeleton]
delete-repository --repository-name <value> [--cli-input-json <value>] [--generate-cli-skeleton]
Note: Deleting a repository also deletes all associated objects and their metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
AWS CodeCommit limits
Everything has its limits, and CodeCommit is no different. Just how far can you stretch your account?
- CodeCommit is available only in Virginia (us-east-1) region.
- A single file in a repository cannot be more than two GB in size.
- An individual commit object, tag, or tree cannot exceed six MB.
- You can have maximum of 1000 repositories per AWS account.CodeCommit is available only in the Northern Virginia region.
AWS CodeCommit pricing
AWS CodeCommit users eligible for the free tier can have five active users, 50 GB per month of storage, and 10,000 Git requests per month for free. Right now, this rate is available to both new and existing customers. Beyond that, AWS CodeCommit costs $1 per active user per month, which comes with ten GB per month of storage and 2,000 Git requests. Additional storage will be charged at $0.06 per GB-month and $0.001 per Git request.
Amazon is making a real push to provide a full range of integrated DevOps services to users and organizations. Their goal seems to be to create a complete development and deployment ecosystem that requires no help from third-party software vendors. To maintain its significant dominance in the public cloud, Amazon is doing a great job stitching DevOps tools into the fabric of its core services.
If you’re interested to learn more on AWS CodeCommit and ensure you know where and when to use it within your own software projects, I recommend the Cloud Academy’s <a href=”https://cloudacademy.com/course/aws-codecommit/” target=”_blank” rel=”noopener”>Introduction to AWS CodeCommit Course</a>.
Watch this short video taken from the course itself.
I also recommend the AWS Developer Fundamentals course for additional background.
Have you had the chance to compare GitHub to AWS CodeCommit? Tell us what you think.
New Content: Platforms, Programming, and DevOps – Something for Everyone
This month our team of expert certification specialists released three new or updated learning paths, 16 courses, 13 hands-on labs, and four lab challenges! New content on Cloud Academy You can always visit our Content Roadmap to see what’s just released as well as what’s coming soon....
Mastering AWS Organizations Service Control Policies
Service Control Policies (SCPs) are IAM-like policies to manage permissions in AWS Organizations. SCPs restrict the actions allowed for accounts within the organization making each one of them compliant with your guidelines. SCPs are not meant to grant permissions; you should consider ...
New Content: Focus on DevOps and Programming Content this Month
This month our team of expert certification specialists released 12 new or updated learning paths, 15 courses, 25 hands-on labs, and four lab challenges! New content on Cloud Academy You can always visit our Content Roadmap to see what’s just released as well as what’s coming soon. Ja...
New Content: Get Ready for the CISM Cert Exam & Learn About Alibaba, Plus All the AWS, GCP, and Azure Courses You Know You Can Count On
This month our team of intrepid certification specialists released five learning paths, seven courses, 19 hands-on labs, and three lab challenges! One particularly interesting new learning path is Certified Information Security Manager (CISM) Foundations. After completing this learn...
Which Certifications Should I Get?
The old AWS slogan, “Cloud is the new normal” is indeed a reality today. Really, cloud has been the new normal for a while now and getting credentials has become an increasingly effective way to quickly showcase your abilities to recruiters and companies. With all that in mind, the s...
The 12 AWS Certifications: Which is Right for You and Your Team?
As companies increasingly shift workloads to the public cloud, cloud computing has moved from a nice-to-have to a core competency in the enterprise. This shift requires a new set of skills to design, deploy, and manage applications in cloud computing. As the market leader and most ma...
AWS Certified Solutions Architect Associate: A Study Guide
Want to take a really impactful step in your technical career? Explore the AWS Solutions Architect Associate certificate. Its new version (SAA-C02) was released on March 23, 2020. The AWS Solutions Architect - Associate Certification (or Sol Arch Associate for short) offers some ...
New Content: AWS Terraform, Java Programming Lab Challenges, Azure DP-900 & DP-300 Certification Exam Prep, Plus Plenty More Amazon, Google, Microsoft, and Big Data Courses
This month our Content Team continues building the catalog of courses for everyone learning about AWS, GCP, and Microsoft Azure. In addition, this month’s updates include several Java programming lab challenges and a couple of courses on big data. In total, we released five new learning...
Where Should You Be Focusing Your AWS Security Efforts?
Another day, another re:Invent session! This time I listened to Stephen Schmidt’s session, “AWS Security: Where we've been, where we're going.” Amongst covering the highlights of AWS security during 2020, a number of newly added AWS features/services were discussed, including: AWS Audit...
AWS re:Invent: 2020 Keynote Top Highlights and More
We’ve gotten through the first five days of the special all-virtual 2020 edition of AWS re:Invent. It’s always a really exciting time for practitioners in the field to see what features and services AWS has cooked up for the year ahead. This year’s conference is a marathon and not a...
WARNING: Great Cloud Content Ahead
At Cloud Academy, content is at the heart of what we do. We work with the world’s leading cloud and operations teams to develop video courses and learning paths that accelerate teams and drive digital transformation. First and foremost, we listen to our customers’ needs and we stay ahea...
Excelling in AWS, Azure, and Beyond – How Danut Prisacaru Prepares for the Future
Meet Danut Prisacaru. Danut has been a Software Architect for the past 10 years and has been involved in Software Engineering for 30 years. He’s passionate about software and learning, and jokes that coding is basically the only thing he can do well (!). We think his enthusiasm shines t...