Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in AWS codepipeline when deploying ElasticBeanstalk

I've created a pipeline which does the following:

  1. Git changes trigger next action (code build)
  2. Codebuild initiates & builds a docker image from git source
  3. Set latest docker container up on Elasticbeanstalk

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). The following error is thrown:

Invalid action configuration The action failed because either the artifact or the Amazon S3 bucket could not be found. Name of artifact bucket: 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. Is this all I have to do?

I've tried looking around and am unable to find anything on this issue.

like image 975
James111 Avatar asked Dec 11 '16 20:12

James111


1 Answers

I had the same problem. Just changed Input artifacts from BuildArtifact to SourceArtifact in the build stage, and everything worked.

like image 51
Shishir Avatar answered Oct 11 '22 03:10

Shishir