简体   繁体   English

从TeamCity访问AWS CodeCommit

[英]Access AWS CodeCommit from TeamCity

I cannot figure out how to add AWS CodeCommit git repository to TeamCity on Windows. 我无法弄清楚如何在Windows 上将AWS CodeCommit git存储库添加到TeamCity。 I tried both SSH and HTTP based integration and it doesn't work either way (I get 403 errors). 我尝试了基于SSH和HTTP的集成,但两种方法均无效(我收到403错误)。 HTTP is a more viable option but since AWS instruction is suggesting to use Putty's Pageant, I think that causes an issue when TeamCity is running as a Windows service. HTTP是一个更可行的选择,但是由于AWS指令建议使用Putty的Pageant,所以我认为当TeamCity作为Windows服务运行时会引起问题。

I appreciate a hint if you've made it to work or have any suggestion. 如果您能成功使用它或有任何建议,我将不胜感激。

TeamCity does not currently support git credential helpers, which is required for CodeCommit over HTTPS. TeamCity当前不支持git凭据帮助程序,这是HTTPS上CodeCommit所必需的。

To set up SSH access, associate an SSH key with an IAM user ( instructions here ). 要设置SSH访问,请将SSH密钥与IAM用户关联( 此处说明 )。 You can then upload the SSH key to the TeamCity server ( instructions here ). 然后,您可以将SSH密钥上载到TeamCity服务器( 此处的说明 )。 For TeamCity's git authentication settings ( see here ), use "Private Key" with the uploaded key and enter the SSH key ID from the AWS IAM console as the username. 对于TeamCity的git身份验证设置( 请参阅此处 ),将“ Private Key”与上载的密钥结合使用,并从AWS IAM控制台输入SSH密钥ID作为用户名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM