AWS Code Commit

本文介绍了如何使用AWS CodeCommit创建托管Git存储库,并通过EC2实例进行远程连接、本地仓库创建、代码修改及提交。通过步骤演示了从创建存储库到在EC2上完成第一次提交的全过程,强调了CodeCommit的安全性、扩展性和协作功能。
摘要由CSDN通过智能技术生成

AWS CodeCommit 是完全托管的源代码控制服务,可托管安全的 Git 存储库,相当于一个Private GitHub。它可让团队在安全且高度可扩展的生态系统中轻松协作处理代码。使用 CodeCommit,无需运行自己的源代码控制系统,也无需担心基础设施的扩展能力。可以使用 CodeCommit 将来自源代码的任何数据安全存储为二进制文件,而且它可以无缝兼容您现有的 Git 工具。

下面,我们一起探索一下CodeCommit的基本用法,来实现你的第一个Commit。

1. Create an AWS CodeCommit Repository

Create in the AWS Console:
Service Menu -> CodeCommit -> Create repository
On the Create repository page, configure:

  • Name: My-Repo
  • Description: My first repository
  • Click Create
    An empty repo called My-Repo will be created in CodeCommit. Connection details will be shown.

2. Create an EC2 Instance

Create an EC2 instance in the AWS Console, and record down the public IP address.

3. Connect the CodeCommit to the EC2 instance

通常有两种方式:

  • SSH keys for AWS CodeCommit
  • HTTPS Git credentials for AWS CodeCommit
    这里,我们使用 SSH keys for AWS CodeCommit

Before this step, you need to create a Key pair for authentication. Say the name is “KEYPAIR.pem”.
Save the .pem file to your local computer.

  • chmod
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值