Our Leadership team is attending CloudFest 2026, from Mar 22 - April 8. Schedule a Connect

Our Leadership team is attending CloudFest 2026, from Mar 22 - April 8.

Discuss MSP growth, DevOps excellence, and Cloud Transformation. Available for 1:1 meetings, Schedule a Connect

  • DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Managed Services Overview
  • Kubernetes Consulting
  • DevOps as a Service
  • Infrastructure Monitoring
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Services
  • Managed Services

aws partneraws advanced partner
LinkedInFacebookXInstagramYouTube
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
Working with Git in CodeCommit

Working with Git in CodeCommit

Vinayan C V

  • 5 min read
Working with Git in CodeCommit

Generating audio, please wait...

In this article we are creating a local copy of the CodeCommit repository which we are creating in AWS, and making some changes to it. Then we push the changes to the AWS CodeCommit repository.

Step-by-step guide

Setup for HTTPS users using Git credentials.

1. Create an AWS CodeCommit Repository.
On the Create repository page, in Repository name, enter a name for your repository. Other fields are optional.

2. Creating Local repository in our system from AWS CodeCommit repo.
Choose Clone URL, and then choose the protocol you want to use when cloning or connecting to the repository.

There are three protocols:
-Copy the HTTPS URL if you are using either Git credentials with your IAM user or the credential helper included with the AWS CLI.
-Copy the HTTPS (GRC) URL if you are using the git-remote-codecommit command on your local computer.
-Copy the SSH URL if you are using an SSH public/private key pair with your IAM user.Here we are using HTTPS URL,
- Create an IAM user with CodeCommit access and generate HTTPS Git credentials, since git https credentials will be asked when running git clone.

2.1. Sign in to the AWS Management Console and open the IAM console to create CodeCommit user.
2.2. In the IAM console, in the navigation pane, choose Users, and then choose Add user or select existing user.

2.3. In Grant permissions, choose Attach existing policies directly.


2.4. After you have selected the policy you want to attach, choose Next: Review to review the list of policies to attach to the IAM user.


- Generate HTTPS Git credentials for CodeCommit user.

git clone https://git-codecommit.us-east-2.amazonaws.com/v1/repos/test

Now you have the local repo with exact copy of CodeCommit repo.
In Grant permissions, choose Attach existing policies directly.

  1. Add files to see the changes happen in CodeCommit after next push.
  2. Run git config to add your username and email address. This makes it easier to identify the commits you make and others.
    git config --local user.name "your-user-name" 
    git config --local user.email your-email-address
  3. Run git status to view the changes made,
    git status

  4. Run git add to stage the change,
    git add .
  5. The git add command adds changes in the working directory to the staging area. It tells Git that you want to include updates to a particular file in the next commit.
  6. Run git commit to commit the change,
    git commit -m "Message to commit"

  7. Run git push to push your initial commit.
    git push -u origin master

    In this step, you push the commit from your local repo to your CodeCommit repository. you can view the changes in AWS. CodeCommit user authentication is needed here.

  8. Now you can view the changes/added files in the AWS CodeCommit repo.

Setup steps for SSH connections to AWS CodeCommit repositories

  1. To set up the public and private keys for Git and CodeCommit from the terminal on your local machine, run the ssh-keygen command, and follow the directions to save the file to the .ssh directory for your profile.
  2. Run the following command to display the value of the public key file (Codecommit_rsa.pub) :
    cat ~/.ssh/codecommit_rsa.pub

    Copy this value to the clipboard.

  3. In AWS IAM console, in the navigation pane, choose Users, and from the list of users, choose your IAM user you created for this CodeCommit. On the user details page, choose the Security Credentials tab, and then choose Upload SSH public key. Paste the contents of your SSH public key into the field, and then choose Upload SSH public key.
  4. Copy or save the information in SSH Key ID (for example, APKA4RVIFCYLNQJMQFFA).
  5. On your local machine, use a text editor to create a config file in the ~/.ssh directory, and then add the following lines to the file, where the value for User is the SSH key ID you copied earlier:
    Host git-codecommit.*.amazonaws.com 
    User APKA4RVIFCYLNQJMQFFA 
    IdentityFile ~/.ssh/codecommit_rsa
  6. Change the permissions for the config file:
    chmod 600 config

  7. Setup is completed and you can test your SSH configuration using the following command :
    ssh git-codecommit.us-east-2.amazonaws.com

LET US TAKE CARE OF YOUR SERVERS 24/7/365.

Get rid of all the hassles

CONTACT OUR DEVOPS TEAM WITH YOUR REQUIREMENTS!

  • Linux

Amazon ECS Exec to access your containers on AWS Fargate Skip to end of metadata

Amazon ECS Exec to access your containers on AWS Fargate Skip to end of metadata
  • AWS
logo

Amazon SES Suppression List

Amazon SES Suppression List
  • AWS
logo

Azure VmScaleset Alert Configuration

Azure VmScaleset Alert Configuration
  • Linux
logo

EC2 Status check and restart using SSM runbook

EC2 Status check and restart using SSM runbook
  • Linux
logo

Posts by Vinayan C V

Vinayan C V