{"id":22853,"date":"2015-07-25T01:56:40","date_gmt":"2015-07-24T20:26:40","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=22853"},"modified":"2017-03-20T17:05:00","modified_gmt":"2017-03-20T11:35:00","slug":"aws-code-commit","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/aws-code-commit\/","title":{"rendered":"AWS CodeCommit"},"content":{"rendered":"<p>AWS has recently launched a new service which is now available generally. AWS CodeCommit is the service we would be talking briefly about in this blog.<\/p>\n<p>AWS <strong>CodeCommit<\/strong> hosts private Git repositories. You can Store code &amp; any other type of file with AWS CodeCommit. It follows Git standards &amp; can be used with other \u00a0tools for Git. This will definitely replace the private repositories in firms because of their tedious maintenance.<\/p>\n<p><span style=\"text-decoration: underline; color: #ff6600;\"><strong>According to AWS the main benefits of using CodeCommit are:-<\/strong><\/span><\/p>\n<ul>\n<li>Fully managed AWS service.<\/li>\n<li>Code is stored securely.<\/li>\n<li>Integration with other\u00a0AWS &amp; third party services.<\/li>\n<li>Migration from other repositories is fairly easy.<\/li>\n<li>Use of previously well known &amp; popular Git tools.<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><span style=\"text-decoration: underline; color: #ff6600;\"><strong>Working of AWS CodeCommit can be easily understood with the help of the below figure:-<\/strong><\/span><br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-22878\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/07\/arc-workflow.png\" alt=\"arc-workflow\" width=\"745\" height=\"613\" \/><\/p>\n<p><span style=\"font-size: small;\">(Image Source:- AWS Documentation)<\/span><\/p>\n<p>Also, with AWS CodeCommit you can use both the AWS CLI &amp; the basic Git commands giving it more flexibility.<\/p>\n<p>We will now go through a quick demo on how to create a CodeCommit repository &amp; use it.\u00a0Just go to CodeCommit Service from your AWS Console.<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-22868\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/07\/Screenshot-from-2015-07-10-132957.png\" alt=\"Screenshot from 2015-07-10 13:29:57\" width=\"697\" height=\"450\" \/><\/p>\n<p><span style=\"color: #ff6600;\">Click on create repository. Enter the name &amp; description according to your needs.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-22867\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/07\/Screenshot-from-2015-07-10-133023.png\" alt=\"Screenshot from 2015-07-10 13:30:23\" width=\"960\" height=\"488\" \/><\/p>\n<p><span style=\"color: #ff6600;\">A new repository will be created.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-22866\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/07\/Screenshot-from-2015-07-10-133055.png\" alt=\"Screenshot from 2015-07-10 13:30:55\" width=\"950\" height=\"212\" \/><\/p>\n<p><span style=\"color: #ff6600;\">Now, to use this AWS repo you can connect via SSH or HTTPS. Click the Icon below URL column.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-22865\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/07\/Screenshot-from-2015-07-10-133112.png\" alt=\"Screenshot from 2015-07-10 13:31:12\" width=\"417\" height=\"136\" \/><\/p>\n<p>[js]<br \/>\ngit clone https:\/\/git-codecommit.us-east-1.amazonaws.com\/v1\/repos\/test test<br \/>\n[\/js]<\/p>\n<p><strong>test<\/strong>&#8211; directory git will create in your current directory &amp; clone the repository into that.<\/p>\n<p><span style=\"color: #ff6600;\">You can take a look at the overview as well:-<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-22864\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/07\/Screenshot-from-2015-07-10-133133.png\" alt=\"Screenshot from 2015-07-10 13:31:33\" width=\"925\" height=\"460\" \/><\/p>\n<p>Then, you can just git clone the repository &amp; start adding, committing, pushing to &amp; pulling from the repository.<\/p>\n<p>[js]<br \/>\ngit add<br \/>\ngit commit<br \/>\ngit push<br \/>\ngit pull<br \/>\n[\/js]<\/p>\n<p>The main benefits of AWS Code Commit are again that it is an AWS managed service so you need not worry about the availability, scalability etc.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong><span style=\"color: #ff6600; text-decoration: underline;\">Regarding pricing, according to AWS Documentation<\/span> <span style=\"color: #ff6600; text-decoration: underline;\">:-<\/span><\/strong><\/span><\/p>\n<ul>\n<li>$1 per active user<b> <\/b>per month.<\/li>\n<\/ul>\n<p>For every active user, your account receives for that month:<\/p>\n<ul>\n<li>10 GB-month of storage<\/li>\n<li>2,000 Git requests<\/li>\n<\/ul>\n<p>Unused storage and Git requests do not accumulate. If you need more storage or Git requests for your users, additional storage will be charged at:<\/p>\n<ul>\n<li>$0.06 per GB-month<\/li>\n<li>$0.001 per Git request<\/li>\n<\/ul>\n<p>Many people would definitely be adopting this service of AWS &amp; I personally would love to use it. If you plan on migrating existing repository to AWS CodeCommit you can click on migration.\u00a0<span style=\"line-height: 1.714285714; font-size: 1rem;\">Also, an advanced user guide is available in <\/span><a style=\"line-height: 1.714285714; font-size: 1rem;\" href=\"http:\/\/docs.aws.amazon.com\/codecommit\/latest\/userguide\/getting-started.html\">AWS Documentation.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS has recently launched a new service which is now available generally. AWS CodeCommit is the service we would be talking briefly about in this blog. AWS CodeCommit hosts private Git repositories. You can Store code &amp; any other type of file with AWS CodeCommit. It follows Git standards &amp; can be used with other [&hellip;]<\/p>\n","protected":false},"author":174,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":5},"categories":[1174,2348,7,1],"tags":[248,2366,2024,2025,1892,375,4840],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/22853"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/174"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=22853"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/22853\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=22853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=22853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=22853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}