简体   繁体   English

TeamCity代理跨AWS账户推送失败

[英]TeamCity Agent Push Failing Across AWS Accounts

We've recently moved our TeamCity server to AWS, but it is managed by a different business unit in my company, therefore we have different AWS accounts. 我们最近已将TeamCity服务器移至AWS,但该服务器由我公司的其他业务部门管理,因此我们拥有不同的AWS账户。 I've gone through our parent company to get VPC peering enabled, so that I can launch EC2 instance build agents. 我已经遍历了母公司以启用VPC对等连接,以便可以启动EC2实例构建代理。

To simplify: Our TeamCity server is on AWS account A and I'm working on AWS account B, where I want the build agents to launch. 为简化起见:我们的TeamCity服务器在AWS账户A上,而我正在使用AWS账户B,我希望在其中启动构建代理。

I had no problems doing this back when the server was on-prem, but I'm having real trouble now. 当服务器处于本地状态时,我这样做没有问题,但是现在遇到了真正的麻烦。

Good : I can launch the instances from TeamCity, which is located in the other business unit's account. 很好 :我可以从位于另一个业务部门帐户中的TeamCity启动实例。

Bad : I can't get it to progress from there. 不好 :我无法从那里继续前进。

I just want to be able to get 'Agent Push' to work right now. 我只希望能够立即启动“ Agent Push”。 Right now, when I try, this is the output I'm given in the web console: 现在,当我尝试时,这是在Web控制台中给出的输出:

[15:12:09]: AgentPush v58406 - Install Agent on remote host
[15:12:09]: Looking for Target Host...
[15:12:09]: Validating TeamCity Server Root URL 'https://teamcity.company.com' ...
[15:12:09]: Starting agent push to 'xx.xx.xxx.xxx'(IP: xx.xx.xxx.xxx) using preset 'Amazon Linux' (Username 'ec2-user'. Target platform: 'Unix')
[15:12:09]: Checking Platform...
[15:16:09]: Remote agent installation failed: timeout: socket is not established

One more thing: we use direct connect and all private IPs. 还有一件事:我们使用直接连接和所有专用IP。 I'm supplying the private IP to the agent push. 我正在向代理推送提供私有IP。 This worked when I was running it on-prem. 当我在本地运行它时,此方法有效。

Does anyone have any ideas as to why I can't get the instances to talk to each other? 是否有人对我为什么无法让实例互相交谈有任何想法?

You need to setup AWS Cross account access . 您需要设置AWS Cross帐户访问权限 More here in docs: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html?icmpid=docs_iam_console docs中的更多信息: https : //docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html? icmpid =docs_iam_console

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

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