gpt4 book ai didi

amazon-web-services - AWS Amplify 与不同账户中的存储库 - 承担角色

转载 作者:行者123 更新时间:2023-12-01 04:26:49 24 4
gpt4 key购买 nike

我已经浏览了文档,但找不到解决方案。
我有两个帐户 dev 和 prod。我的放大应用程序存在于开发中,但代码提交存在于产品中。有什么办法可以连接它们吗?

我已经配置了假定角色,并且还尝试在不同的配置文件中使用临时凭据并将其连接到:

aws amplify create-app --name app-name-in-dev --repository repo-in-prod
aws amplify create-app --name app-name-in-dev --repository repo-in-prod --iam-service-role-arn arn:aws:sts::prod:assumed-role/CrossAccountRepositoryContributorRole/cross-account

问题还是一样。似乎不可能将 amplify 与 code-commit 连接起来,直到存储库和 amplify-app 存在于同一帐户中。

无论如何要实现这一点还是真的不可配置?

引用:
https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html

https://docs.aws.amazon.com/cli/latest/reference/sts/assume-role.html

https://forums.aws.amazon.com/thread.jspa?threadID=300224

最佳答案

以防万一有人来寻找相同的:
使用 AWS 创建票证后,我收到回复说目前不可能,因为 Amplify 仍然是一项较新的服务,并且只允许来自同一帐户的存储库。

I have tried setting this up at my end and observed the same. I was able to connect to the repositories only in the same account. I did further research on this and could confirm that currently, we cannot integrated with a cross account CodeCommit repository for Amplify applications.

关于amazon-web-services - AWS Amplify 与不同账户中的存储库 - 承担角色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57911157/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com