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: 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...
New Content: AWS Data Analytics – Specialty Certification, Azure AI-900 Certification, Plus New Learning Paths, Courses, Labs, and More
This month our Content Team released two big certification Learning Paths: the AWS Certified Data Analytics - Speciality, and the Azure AI Fundamentals AI-900. In total, we released four new Learning Paths, 16 courses, 24 assessments, and 11 labs. New content on Cloud Academy At any ...
New Content: Azure DP-100 Certification, Alibaba Cloud Certified Associate Prep, 13 Security Labs, and Much More
This past month our Content Team served up a heaping spoonful of new and updated content. Not only did our experts release the brand new Azure DP-100 Certification Learning Path, but they also created 18 new hands-on labs — and so much more! New content on Cloud Academy At any time, y...
AWS Certification Practice Exam: What to Expect from Test Questions
If you’re building applications on the AWS cloud or looking to get started in cloud computing, certification is a way to build deep knowledge in key services unique to the AWS platform. AWS currently offers 12 certifications that cover major cloud roles including Solutions Architect, De...
Overcoming Unprecedented Business Challenges with AWS
From auto-scaling applications with high availability to video conferencing that’s used by everyone, every day — cloud technology has never been more popular or in-demand. But what does this mean for experienced cloud professionals and the challenges they face as they carve out a new p...
Constant Content: Cloud Academy’s Q3 2020 Roadmap
Hello — Andy Larkin here, VP of Content at Cloud Academy. I am pleased to release our roadmap for the next three months of 2020 — August through October. Let me walk you through the content we have planned for you and how this content can help you gain skills, get certified, and...
New Content: Alibaba, Azure AZ-303 and AZ-304, Site Reliability Engineering (SRE) Foundation, Python 3 Programming, 16 Hands-on Labs, and Much More
This month our Content Team did an amazing job at publishing and updating a ton of new content. Not only did our experts release the brand new AZ-303 and AZ-304 Certification Learning Paths, but they also created 16 new hands-on labs — and so much more! New content on Cloud Academy At...
Blog Digest: Which Certifications Should I Get?, The 12 Microsoft Azure Certifications, 6 Ways to Prevent a Data Breach, and More
This month, we were excited to announce that Cloud Academy was recognized in the G2 Summer 2020 reports! These reports highlight the top-rated solutions in the industry, as chosen by the source that matters most: customers. We're grateful to have been nominated as a High Performer in se...