gpt4 book ai didi

amazon-web-services - CodePipeline (AWS) 的 CodeBuild (AWS) 不工作

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

我已经从代码管道向导创建了一个代码构建项目,其中包含所有必需的必需选项和有效的 IAM 角色。我还添加了 IAM 角色策略,这是访问和写入 S3 存储桶中的数据所必需的。下面提到的策略我已经考虑过访问 S3。

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Resource": [
"arn:aws:logs:aws/codebuild",
"arn:aws:logs:aws/codebuild:*"
],
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
]
},
{
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::pipeline”,
"arn:aws:s3::: pipeline/*"
],
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:GetObjectVersion",
"s3:GetBucketAcl",
"s3:GetBucketLocation"
]
}
]

}

一旦我启动了一个管道,代码构建就会失败,我得到了下面提到的错误
DOWNLOAD_SOURCE Failed: 
CLIENT_ERROR: symlink /codebuild/output/.../libcrypto.1.0.0.dylib: no such file or directory for primary source and source version arn:aws:s3:::codepipeline-bucketSource/Ap4g3sv.zip

我研究了很多,浏览了各种 AWS 文档,但找不到解决方案。

最佳答案

最后经过大量研究,我发现这只是一个许可问题。我不得不改变政策,如下所述:

{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": [
"*"
],
"Effect": "Allow"
},
{
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:GetObjectVersion",
"s3:GetBucketAcl",
"s3:GetBucketLocation"
],
"Resource": [
"*"
],
"Effect": "Allow"
}
]
}

添加此修改后,我的代码构建和管道开始工作。

关于amazon-web-services - CodePipeline (AWS) 的 CodeBuild (AWS) 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56232384/

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