Wednesday, July 8, 2020

AWS CodeCommit - A new home for your repository

AWS CodeCommit - A new home for your repository AWS CodeCommit A New Home For Your Repository Back Home Categories Online Courses Mock Interviews Webinars NEW Community Write for Us Categories Artificial Intelligence AI vs Machine Learning vs Deep LearningMachine Learning AlgorithmsArtificial Intelligence TutorialWhat is Deep LearningDeep Learning TutorialInstall TensorFlowDeep Learning with PythonBackpropagationTensorFlow TutorialConvolutional Neural Network TutorialVIEW ALL BI and Visualization What is TableauTableau TutorialTableau Interview QuestionsWhat is InformaticaInformatica Interview QuestionsPower BI TutorialPower BI Interview QuestionsOLTP vs OLAPQlikView TutorialAdvanced Excel Formulas TutorialVIEW ALL Big Data What is HadoopHadoop ArchitectureHadoop TutorialHadoop Interview QuestionsHadoop EcosystemData Science vs Big Data vs Data AnalyticsWhat is Big DataMapReduce TutorialPig TutorialSpark TutorialSpark Interview QuestionsBig Data TutorialHive TutorialVIEW ALL Blockchain Blockchain TutorialWhat is BlockchainHyperledger FabricWhat Is EthereumEthereum TutorialB lockchain ApplicationsSolidity TutorialBlockchain ProgrammingHow Blockchain WorksVIEW ALL Cloud Computing What is AWSAWS TutorialAWS CertificationAzure Interview QuestionsAzure TutorialWhat Is Cloud ComputingWhat Is SalesforceIoT TutorialSalesforce TutorialSalesforce Interview QuestionsVIEW ALL Cyber Security Cloud SecurityWhat is CryptographyNmap TutorialSQL Injection AttacksHow To Install Kali LinuxHow to become an Ethical Hacker?Footprinting in Ethical HackingNetwork Scanning for Ethical HackingARP SpoofingApplication SecurityVIEW ALL Data Science Python Pandas TutorialWhat is Machine LearningMachine Learning TutorialMachine Learning ProjectsMachine Learning Interview QuestionsWhat Is Data ScienceSAS TutorialR TutorialData Science ProjectsHow to become a data scientistData Science Interview QuestionsData Scientist SalaryVIEW ALL Data Warehousing and ETL What is Data WarehouseDimension Table in Data WarehousingData Warehousing Interview QuestionsData warehouse architectureTalend T utorialTalend ETL ToolTalend Interview QuestionsFact Table and its TypesInformatica TransformationsInformatica TutorialVIEW ALL Databases What is MySQLMySQL Data TypesSQL JoinsSQL Data TypesWhat is MongoDBMongoDB Interview QuestionsMySQL TutorialSQL Interview QuestionsSQL CommandsMySQL Interview QuestionsVIEW ALL DevOps What is DevOpsDevOps vs AgileDevOps ToolsDevOps TutorialHow To Become A DevOps EngineerDevOps Interview QuestionsWhat Is DockerDocker TutorialDocker Interview QuestionsWhat Is ChefWhat Is KubernetesKubernetes TutorialVIEW ALL Front End Web Development What is JavaScript â€" All You Need To Know About JavaScriptJavaScript TutorialJavaScript Interview QuestionsJavaScript FrameworksAngular TutorialAngular Interview QuestionsWhat is REST API?React TutorialReact vs AngularjQuery TutorialNode TutorialReact Interview QuestionsVIEW ALL Mobile Development Android TutorialAndroid Interview QuestionsAndroid ArchitectureAndroid SQLite DatabaseProgramming A New H... AWS Architec t Certification Training (56 Blogs) Become a Certified Professional AWS Global Infrastructure Introduction To Cloud Computing What Is Cloud Computing?Cloud Computing Services: A Deeper Dive Into Cloud ComputingCloud Security: A Guide for Cloud Users Getting Started With Cloud Engineering How To Become A Cloud Engineer?Skills You Should Learn To Become A Cloud EngineerCloud Engineer : Roles Responsibilities And All You Need To KnowCloud Engineer Salary: All You Need To Know Getting Startred With AWS What is AWS? â€" An Introduction to AWSAWS Tutorial: Introduction to Cloud ComputingAWS vs Azure: What Is The Difference?Top 10 Reasons To Learn AWSAWS Certification â€" All you need to knowAWS Resume: How To Make Your Professional Parchment Look Attractive?AWS Salary: How Much Does An AWS Professional Make?AWS Pricing â€" An Introduction to AWS PricingAWS Console: Deep Dive Into AWS Management InterfaceWhat is AWS CLI? Know its Applications and BenefitsWhat is AWS CLI and how to use it?Everything You Need To Know About Instances In AWS AWS Compute Services AWS EC2 Tutorial : Amazon Elastic Compute CloudHow To Restore EC2 From Snapshot?AWS Lambda Tutorial: Your Guide To Amazon Serverless ComputingHow to Launch an EC2 Instance From a Custom AMI?AWS Elastic Beanstalk â€" Application Deployment Made EasyAmazon Lightsail Tutorial â€" An IntroductionAWS Fargate â€" A Compute Engine For ECSBuilding A Kubernetes App With Amazon EKSElastic Load Balancer Tutorial â€" One step solution for the uncertainAll You Need To Know About Application Load BalancerAll you need to know about Amazon's Network Load Balancer AWS Storage Services AWS S3 Tutorial: Deep Dive into Amazon Simple Storage ServiceAWS Migration: Migrating An On-Premise Application To Cloud AWS Networking Amazon VPC Tutorial- Secure Your AWS Environment AWS Database Services Amazon DynamoDB Tutorial â€" A Complete GuideRDS AWS Tutorial: Getting Started With Relational Database ServiceAWS Data Pipelin e Tutorial â€" A Data Workflow Orchestration ServiceWhat Is Amazon Athena? â€" The New Era Of Data AnalysisHow To Create Hadoop Cluster With Amazon EMR? AWS Services Amazon Route 53: All You Need To Know About Latency Based RoutingAWS Snowball and Snowmobile TutorialAmazon CloudWatch â€" A Monitoring Tool By AmazonHow To Develop A Chat Bot Using Amazon Lex? AWS DevOps Services AWS DevOps: Introduction to DevOps on AWSAWS Certified DevOps Engineer : A Perfect AmalgamationAWS CodeCommit â€" A New Home For Your RepositoryAWS CodeDeploy: How To Automate Code Deployment?AWS CodeStar Tutorial: First Glance At AWS CodeStarIntroduction to AWS OpsWorks Running Docker In Production Using Amazon ECS AWS Interview Questions Top AWS Architect Interview Questions In 2020Cloud Computing Topics CoveredAWS Architect Certification Training (47 Blogs)AWS Development (10 Blogs)SFDC Administration Foundation (3 Blogs)Salesforce Admin and Dev Foundation (9 Blogs)SEE MORE AWS CodeCommit A New Hom e For Your Repository Last updated on May 19,2020 2.1K Views Kalgi Shah Kalgi Shah works at Edureka as Research Analyst. Always curious about the... Kalgi Shah works at Edureka as Research Analyst. Always curious about the wonders of technology. Fields like Artificial Intelligence, DevOps, Data Analytics, Kubernetes attract... Bookmark 3 / 6 Blog from AWS DevOps Services Become a Certified Professional As a developer wouldnt you like to keep your entire focus on production instead of repository administration and maintenance? Thats where AWS CodeCommit comes into the picture. Providing a secure and fully managed service, it has proved to boost an organizations performance in various aspects.Topics Covered:Introduction to AWS CodeCommitAWS CodeCommit vs GitHubAWS CodeCommit WorkflowCase Study: How Edmunds.com Reduced Administration Maintainance Time by 95%Demo: Create A Repository In CodeCommit And Explore Its FeaturesIntroduction To AWS CodeCommitAWS CodeCommit is a source c ontrol storage and version code service provided by Amazon. It helps the team with better code management and collaboration, exploiting the benefits of CI/CD. It eliminates the need for a third party version control. This service can be used to store assets such as documents, source code, and binary files. It also helps you manage these assets. Managing includes scaling, integrating, merging, pushing and pulling code changes. Lets have a better look at services provided by CodeCommit:Fully Managed Service:If youre a DevOps engineer, wouldnt you like to keep your entire focus on production instead of maintaining updates, managing your own hardware or software? AWS CodeCommit eliminates the boring tasks of managing your resources providing high service availability and durability.Store Code Securely:Since its a version control system, it stores your code. For a matter of fact, it stores any kind of data, be it documents or binary files. Data stored is pretty secure as theyre encrypted at rest as well as in transit.Work Collaboratively With Code:AWS CodeCommit lets you collaboratively work with the code. You can work on a section of the code and the other person/team can work on the other section, the changes/updates can be pushed and merged in the repository. Users can review, comment on each others code helping them write code to their highest potential.Highly Scalable:AWS CodeCommit lets you scale up or down to meet your needs. The service can handle large repositories, a large number of files with large branches and lengthy commit histories.Integration:You can easily integrate AWS CodeCommit with other AWS services. It keeps these services close to other resources making it easier and faster to fetch and use increasing the speed and frequency of development life cycle. It also lets you integrate third-party services pretty easily.Migration:You can easily Migrate any Git-based repository to CodeCommit easily.Interactions Using Git:Interacting with CodeCommit i s pretty simple as its Git-based. You can use Git Commands to pull, push, merge or perform other actions. It also gives you the feature to use AWS CLI commands along with its very own APIs.Cross-Account Access:CodeCommit lets you cross-link two different AWS accounts making it easier to share repositories between two accounts securely. There are a few things to keep in mind like you shouldnt share your ssh keys or AWS credentials.Introduction to AWS CodeCommit | AWS Certified DevOps Engineer TrainingThis video will give you an introduction to the version control system like pushing, pulling, merging, and committing code using AWS DevOps Service CodeCommit.AWS CodeCommit vs GitHubGitHub is also one of the version control systems. Lets first look at the similarities between GitHub and CodeCommit.CodeCommit and GitHub use Git repositories.Both of them support code review.They can be integrated with AWS CodeBuild.Both of them use two methods of authentications, SSH and HTTPS.Lets now h ave a look at the differences between them.Security: Git is administered using GitHub users while CodeCommit uses AWSs IAM Roles and users. This makes it highly secure. Using IAM roles lets you share your repositories with only specific people while letting you limit their access to the repository. For example, few users can view the repository, few people can make edits, etc. CodeCommit lets you have a third step authentication using MFA.Hosting: Git is like home for GitHub but not when used with AWS. Hence when GitHub is used with AWS, its like a third-party tool. Whereas, CodeCommit is hosted on AWS and managed by AWS, making integrations with CodeBuild and its usage much simpler.User Interface: GitHub is fully featured and has a really nice UI. Whereas CodeCommit user interface is pretty average.AWS CodeCommit WorkflowHave a look at the below flow diagram to understand the workflow of CodeCommit. It consists of three parts Development Machine, AWS CLI/CodeCommit Console, AWS Co deCommit Service.You can use the AWS CLI or AWS CodeCommit Console to create a repository(remote) which will be reflected onto your AWS CodeCommit Service to start off with your project.Do a git clone from your development machine, a git clone request will be received at the CodeCommit service end. This will end up syncing the remote repository created in step 1 and the local repository that was just cloned.Use the local repository on the development machine to modify the code. Run git add to stage the modified files locally, git commit to commit the files locally and git push to push the modified changes to CodeCommit. This will, in turn, modify the remote repository.Download changes or modifications that are done by other team members working on the same repository using git pull. Update the remote repository and send those updates to your development machine to keep the local repository updated.Case StudyLets have a look at a case study to point out my views better.About the comp any:Im going to talk about this company called Edmunds.com. Its an online website/app that lets buyers browse cars, view photos, videos, etc about cars that are out for sale.Challenges:Previously used on-premises SCM had a few issues as mentioned below:Adding new users to the SCM was difficultSCM has a huge operational burdenDifficult and time-consuming to manage and maintain hardware and softwareRepositories lacked backupRepositories lacked clustering capabilitiesService would suffer from downtimeAWS CodeCommit to the rescue:Edmunds.com started using AWSs CodeCommit after researching about many other services. They migrated more than 1,000 repositories and more than 270 users to AWS. CodeCommit handles hosting, maintenance, backup and scaling for the company.Fully managed: The company has experienced about 95 percent reduction in the time spent on administration and maintenance.Highly Available: Made git repositories highly available by using Amazons S3 to store the backup across d ifferent Availability Zones.Code Efficient: Company is saving across $450 per user manually.Flexible: Using Amazons CodeCommit made their website to be easily scalable in terms of the number of users making it very flexible.Demo: Create a Repository In CodeCommit And Explore Its FeaturesIn this section, Ill demonstrate the creation of a repository on CodeCommit, create a branch, commit changes, view the changes and merge repositories. Lets have a look.Step 1: Go to your AWS login page and log into your AWS account. If you do not have an account, proceed by creating a free account. Once you log-in, you should see a page as shown below:Search for CodeCommit and click on that service. Further, click on Create Repository to create a repository.Youll be prompted to add your Repository Name and Description. Add those and click on Create.You should get a success message as I got.There are two ways of connecting your repository SSH and HTTPS. In this case, Ill be using HTTPS. Now that a re pository has been created, go ahead and create files in the repository. When you create a repository, its always empty. Youll have to create and add files. Get inside the repository that youve created and click on Create file.Once youve created the file. Go ahead and add code to the file.Now that youve written your code, you need to commit these changes. Add Filename, Author name, Email ID, Commit message and click on Commit Changes.Now when you navigate to the Repository section by clicking on Repository, you should see your repository there.Go ahead and click on your repository, you should see the file that you just created.What are branches and why are they usedNow that youve created a repository, a file and added the code into the file, lets learn how to create branches. Do you guys know why branches are used? In a Dev or Prod environment, you are not the only one working on these repositories. There are going to be other people working on different sections of the same reposito ry. Different people working on the same file can get confusing.Its better to use branches in such situations. Branches are basically copies of the original file which can be allocated to different people. They can make changes, commit them and push it to CodeCommit. After certain tests when these codes are verified, they can be merged with the master branch. In the next section, Ill explain how to create branches, edit branches, view and compare changes, view commit history and how to merge these branches with the master branch.Step 2: To create branches, click on Branches on the extreme right.And then click on Create branch on the extreme right top corner as shown below:Add branch name and description and click on Create branch.You should see something similar to this:Once you click on the branch, youll see that it contains all the files that exist on your master branch.Lets go ahead and make changes to this branch. Click on the file ec2.txt.Click on Editas highlighted below.Make the changes as you wish and commit these changes by adding the Author name, Email Address, Commit message. Go ahead and click on Commit changes.You should get a success message as I got.Now that you have a master branch and another branch which is a little different than the master branch, lets compare them to look for differences. Click on Create Pull Request.Select the master branch as youre comparing the current branch with the master branch. Click on Compare.This highlights all the differences in the master and the other branch.You can also check the commit history. Just click on Commits, next to changes.Step 3: Suppose you agree with the changes made in this branch and youd like to reflect these changes to your master branch, you can merge the two branches. Add Title and Description.And click on Create.You get a success pull request notification.Click on Merge to finally merge the two branches.This brings us to the end of AWS CodeCommit blog. You can integrate this service with various DevOps tools and can make the building process easier. I hope this blog was helpful. For more such blogs, visit Edureka Blog.If you wish to learn more about Cloud Computing and build a career in Cloud Computing, then check out ourCloud Computing Courseswhichcomes with instructor-led live training and real-life project experience.This training will help you understand Cloud Computing in depth and help you achieve mastery over the subject.Got a doubt? Please mention it in the comments sectionorpost it onEdureka Communityand we will get back to you. At Edureka Community we have more than 1,00,000+ tech-fanatics ready to help.Recommended videos for you Power The Hadoop Cluster With AWS Cloud Watch Now Architecting in Cloud-III Watch Now Architecting in Cloud-II Watch Now What Is AWS Getting Started With AWS Watch Now Cloud Computing with AWS II Watch Now Efficient Disaster Recovery with Cloud Computing Watch Now AWS Tutorial A Complete Tutorial On Amazon Web Services Watch N ow Building Scalable Application on Cloud Watch Now AWS Certifications All You Need To Know Watch Now AWS Vs Azure Cloud Platform Comparison Watch Now What Is Cloud Computing? A Beginners Guide To Understanding Cloud Watch Now Microsoft Azure Tutorial Step-By-Step Tutorial In Azure Watch Now AWS vs Google Cloud Cloud Platform Compared Watch NowRecommended blogs for you AWS Migration: Migrating An On-Premise Application To Cloud Read Article Running Docker In Production Using Amazon ECS Read Article A Comprehensive Guide For On-premise vs Cloud Computing Tutorial Read Article Top 10 Reasons To Learn AWS Read Article Top 50 Azure Interview Questions You Must Prepare In 2020 Read Article Salesforce Service Cloud One Stop Solution For Customer Needs Read Article Cloud Security: A Guide for Cloud Users Read Article Microservice Architecture Learn, Build and Deploy Microservices Read Article What Are The Top 10 Myths Regarding Cloud Computing? Read Article What is Google Cloud Plat form (GCP)? Introduction to GCP Services GCP Account Read Article Creating Highly Available Websites using AWS Global Infrastructure Read Article How To Get A ServiceNow Developer Instance? Read Article How To Secure Web Applications With AWS WAF? Read Article Everything You Need To Know About Microservices Design Patterns Read Article Microsoft Azure Tutorial Cloud Computing With Azure Read Article What Is Salesforce? A Beginners Guide To Understanding Salesforce Read Article How To Become A Cloud Engineer? Read Article Cloud Computing Services: A Deeper Dive Into Cloud Computing Read Article Azure Virtual Network For Beginners Securing Your Applications Using VPC Read Article AI and IoT in FIFA: Smart Sports Read Article Comments 0 Comments Trending Courses in Cloud Computing Microsoft Certified Expert: Azure Solutions A ...6k Enrolled LearnersWeekendLive Class Reviews 5 (2250)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.