logo
  • Blog
  • The Cloud
  • DevOps
  • Trending
    • Blockchain
    • Bitcoin
  • How To
  • Kubernetes

AWS CodeCommit: Setup HTTPS Connection

Posted on October 21, 2018
Published on: Oct 21, 2018 | Last updated on: Oct 21, 2018 |
Author: Sushil Verma Sushil Verma (Linkedin, Twitter, Git)

 2,249 total views,  2 views today

AWS CodeCommit: Setup HTTPS Connection was last modified: August 8th, 2020 by Sushil Verma
Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Email this to someone
email

AWS CodeCommit: Setup HTTPS Connection

Inception: Learn about AWS CodeCommit HTTPS connection types that will help you in connecting
with pull, push, branching, etc git operation on CodeCommit from
your local computer. This is another basic step towards setting up fully automated AWS Pipeline in DevOps.

To setup HTTPS connection with AWS CodeCommit, you need to create a repository and then an IAM User.
Click here to Setup SSH connection with
AWS CodeCommit repository.

Setup HTTPS connection pretty easy in AWS CodeCommit. Following are steps to setup it.

Create IAM Users/Groups

Follow below steps to create a IAM Group and User.

  1. Create a IAM Group named developer
  2. Attach a Managed Policy AWSCodeCommitFullAccess to developer
  3. Create an IAM User with Programmatic access, and AWS Management Console access
  4. Add this new User to the developer group

Generate HTTPS Git credentials for AWS CodeCommit

Following are the steps to generate HTTPS Git credentials for AWS CodeCommit.

  1. Login to AWS Console and go to IAM
  2. Click on IAM User, you want to generate HTTPS credentials.
  3. Click on Security credential tab
  4. Go to HTTPS Git credentials for AWS CodeCommit, and click on Generate credentials button.
  5. It will generate credentials and show you User name, and Password
  6. Download the credentials and keep it safe.

Setup your repository

Now you will learn how to use these HTTPS credentials to upload your local code to AWS CodeCommit.

There might be 2 scenarios, either you might have created a new CodeCommit repository, which has nothing as of now
or you are going to join a developers team in which there is already a CodeCommit repository and you want to clone that repository.

Both scenarios are similar except in first one you are going to make first commit.

Scenario #1

Follow below steps to setup connection to CodeCommit repository from scratch.

  1. You have created a empty CodeCommit repository, and HTTPS git credentials are generated.
  2. Go to CodeCommit repository, click on Clone URL, and then click on Clone HTTPS option to copy the URL
  3. Go to command line and type a command git clone HTTPS_GITHUB_URL and press enter.
  4. Enter the HTTPS credential’s Username and Password
  5. You must see Warning: You appear to have cloned an empty repository. and Checking connectivity… done. on successful connection.
  6. Now you have established HTTPS connection from your local machine to CodeCommit repository. You are ready to push some initial code to the repository.

Scenario #2

In this scenario, you have already a repository in AWS CodeCommit and you want to clone the repo and start contributing the code.

Follow below steps to setup connection to CodeCommit repository.

  1. You have existing repository on AWS CodeCommit, and you have generated HTTPS Git credentials for AWS CodeCommit for your IAM user.
  2. Go to AWS CodeCommit repository on AWS Console.
  3. Click on repository, you want to clone it locally
  4. Click on Clone URL, and then click on Clone HTTPS
  5. Go to command line and type a command git clone HTTPS_GITHUB_URL and press enter.
  6. Enter the HTTPS credential’s Username and Password
  7. You will see that repository has been cloned and you are ready to make changes in code and push them back to repository.
Conclusion:You have set up HTTPS Connection from your local machine to AWS CodeCommit, and cloned the repository to your local machine. Now you are ready to develop the code, commit and push the changes into CodeCommit Repository. You can run all git from your local machine.

 2,248 total views,  1 views today

AWS CodeCommit: Setup HTTPS Connection was last modified: August 8th, 2020 by Sushil Verma
Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Email this to someone
email
Posted in AWS CodeCommit, DevOps | Tags: CodeCommit, DevOps |
« AWS CodeCommit: Setup SSH Connection
Package Management in Debian-based Distributions »

Leave a comment Cancel reply

Your email address will not be published.

Latest Blogs

  • Linux: Viewing Log Messages
  • AWS CodeBuild: Getting Started
  • AWS CodeCommit: Set up Notifications
  • AWS CodeCommit: Securing The Repository and Branches
  • Managing Systemd units in Linux

Tags

Amazon EC2 AWS bash_shell bitcoin blockchain Cloud computing CodeCommit DevOps digital currency Kubernetes Linux trending ubuntu

For Improving Education

Categories

  • Amazon EC2
  • Amazon Web Services
  • AWS
  • AWS CodeCommit
  • Bash shell
  • Best Practices
  • Bitcoin
  • Blockchain
  • Chaincode
  • CLI
  • Cloud Computing
  • Cloud Security
  • CodeBuild
  • CodeCommit
  • CryptoCurrency
  • Cryptography
  • DevOps
  • Digital Currency
  • EC2 Lambda
  • Hyperledger
  • IBM Bluemix
  • IBM Garage
  • Kubernetes
  • Linux
  • Monitoring
  • OpenStack
  • Platform as a Service
  • TDD
  • Trending
  • Ubuntu
  • Virtual Server
Home | Site Map | Privacy Policy | Site Terms | Terms of use @2013, Times of Cloud.
The content is copyrighted to 'Times of Cloud' and may not be reproduced on other websites.