[英]Error in AWS codepipeline when deploying ElasticBeanstalk
I've created a pipeline which does the following: 我创建了一个执行以下操作的管道:
The first 2 steps are working fine, git changes initiate a codebuild, the codebuild builds a docker image, and then tries to set it up on Elasticbeanstalk (which fails). 前两个步骤运行良好,git更改启动了一个代码构建,该代码构建构建了一个docker映像,然后尝试在Elasticbeanstalk上进行设置(失败)。 The following error is thrown: 引发以下错误:
Invalid action configuration The action failed because either the artifact or the Amazon S3 bucket could not be found. 无效的操作配置该操作失败,因为找不到工件或Amazon S3存储桶。 Name of artifact bucket: MY_BUCKET_NAME. 工件存储桶的名称:MY_BUCKET_NAME。 Verify that this bucket exists. 验证此存储桶是否存在。 If it exists, check the life cycle policy, then try releasing a change. 如果存在,请检查生命周期策略,然后尝试发布更改。
In my codebuild project, I've set the artifact location to MY_BUCKET_NAME & named it aws-test-artifact. 在我的代码构建项目中,我将工件位置设置为MY_BUCKET_NAME并将其命名为aws-test-artifact。 Is this all I have to do? 这就是我要做的吗?
I've tried looking around and am unable to find anything on this issue. 我已尝试环顾四周,但无法在此问题上找到任何东西。
I had the same problem. 我有同样的问题。 Just changed Input artifacts from BuildArtifact to SourceArtifact in the build stage, and everything worked. 刚刚在构建阶段将Input工件从BuildArtifact更改为SourceArtifact,一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.