gpt4 book ai didi

aws-codepipeline - AWS CodePipeline : source action has insufficient permissions for CodeStar connection

转载 作者:行者123 更新时间:2023-12-03 15:59:41 27 4
gpt4 key购买 nike

我正在设置 CodePipeline,并创建了一个操作来从 GitHub 获取源代码。
这需要建立一个连接,我做到了,而且在 GitHub 方面看起来也很好。
但是,如果我发布对管道的更改,我会在源阶段看到以下错误:

Insufficient permissions
Unable to use Connection: arn:aws:codestar-connections:us-east-1:REDACTED:connection/REDACTED. The provided role does not have sufficient permissions.
我添加了对管道服务角色(我在管道设置中找到)的完整 CodeStar 访问权限,如下所示:
arn:aws:iam::REDACTED:role/service-role/AWSCodePipelineServiceRole-us-east-1-REDACTED
有没有人知道可能会丢失什么?谢谢!

最佳答案

解决方案是将此位添加到服务角色的策略中:

{
"Effect": "Allow",
"Action": "codestar-connections:UseConnection",
"Resource": "insert ARN of the CodeStar connection here"
}

关于aws-codepipeline - AWS CodePipeline : source action has insufficient permissions for CodeStar connection,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64298865/

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