在AWS上配置CodeCommit
来源:互联网 发布:gta4画面优化补丁 编辑:程序博客网 时间:2024/06/05 22:31
CodeCommit的配置相对简单,首先登陆到AWS Console界面,到CodeCommit出,点Create Repository,给个名字,即可完成Repository的创建。然后就是配置客户端连接,这个比较麻烦。
我选用的是HTTPS连接方式和Windows客户端,然后AWS给出连接步骤:
1. Install Git (1.7.9 or later supported) without the Git Credential Manager utility. If you don’t have Git installed, install it now.
https://git-scm.com/download/win
2. Install the AWS CLI.
http://docs.aws.amazon.com/cli/latest/userguide/awscli-install-windows.html#awscli-install-windows-path
At the command line, type aws configure and configure the AWS CLI with your IAM user access key and secret key.
Attach an appropriate AWS CodeCommit managed policy to the IAM user. Learn more
Steps to clone your repository
At the command line, paste the following commands:
git config --global credential.helper "!aws codecommit credential-helper $@"
git config --global credential.UseHttpPath true
Clone your repository to your local computer and start working on code:
git clone https://git-codecommit.xxxxxx.amazonaws.com/v1/repos/xxxxxxxxxxx
对于AWS CLI key的配置
aws configure --profile my-test-profile(your profile name)
access key:
secret key:
region: us-east-1 or 2 or others
format: default - press Enter key
如此AWS CLI配完,然后是git:
git config --global credential.helper "!aws codecommit credential-helper $@"
git config --global credential.UseHttpPath true
后面输入:git clone https://git-codecommit.xxxxxx.amazonaws.com/v1/repos/xxxxxxxxxxx
提示需要输入Git Credential Manager的用户名和密码
搜索后看到:
If you intend to use HTTPS with the credential helper that is included in the AWS CLI instead of configuring Git credentials for AWS CodeCommit, on the Configuring extra options page, make sure the Enable Git Credential Manager option is cleared.
不知道这个在哪里取消,因此按照:http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-gc.html,生成对应的用户名和密码来解决。
In the IAM console, in the navigation pane, choose Users, and from the list of users, choose your IAM user.
On the user details page, choose the Security Credentials tab, and in HTTPS Git credentials for AWS CodeCommit, choose Generate.
Generating Git credentials in the IAM console
- 在AWS上配置CodeCommit
- AWS CodeCommit 常见问题
- 试用AWS的CodeCommit服务
- 在AWS Ubuntu 14.04上安装配置ftp服务器 vsftpd
- [AWS] 记录在AWS上部署WordPress遇到的问题
- 在阿里云、微软Windows Azure、亚马逊AWS 上使用Nginx配置http正向代理服务器
- 记在AWS EC2上安装配置Apache遇到的问题
- 在AWS Ubuntu上安装和配置VNC并通过SSH隧道连接
- 在AWS EC2上创建root用户
- 在AWS上搭建tomcat服务器
- 在aws的ec2上部署spark
- 如何在AWS上运行Kubernetes
- 在AWS上设置Docker Swarm Mode
- Netflix在AWS上的应用和创新
- 喻俨:海豚浏览器在AWS上的最佳实践
- 如何在AWS(基于Amazon Linux)上搭建PPTP VPN
- 在AWS RDS(Oracle)上执行数据导入
- 在AWS上使用GPU实现分布式神经网络
- 问题 C: 查找学生信息
- 简单递推
- py文件如何加密为pyc文件
- ab压力测试工具简单使用
- set
- 在AWS上配置CodeCommit
- .NET Core 使用RSA算法 加密/解密/签名/验证签名
- 浅析Entity Framework Core中的并发处理
- javascript忍者秘籍
- PCA降维原理 onenote笔记
- 本土开源、立足全球 | COSCon'17
- zset
- LeetCode330. Patching Array
- 最速下降法+armijo 求rosenbrock多维函数