Questions tagged [aws-codepipeline]

AWS CodePipeline is a continuous delivery service for fast and reliable application updates. CodePipeline builds, tests, and deploys your code every time there is a code change, based on the release process models you define.

AWS CodePipeline is a continuous delivery service for fast and reliable application updates. CodePipeline builds, tests, and deploys your code every time there is a code change, based on the release process models you define. This enables you to rapidly and reliably deliver features and updates. You can easily build out an end-to-end solution by using pre-built plugins for popular third-party services like GitHub or integrating your own custom plugins into any stage of your release process.

1526 questions
13
votes
2 answers

How to handle multiple environments in CodePipeline?

I'm using code pipeline to deploy my infrastructure and I would like to be able to deploy it in different environments (dev, staging, prod,...). I currently have a buildspec.yml file containing some "pip install" instructions and the "aws…
13
votes
3 answers

AWS CodePipeline, build failed & getting error as YAML_FILE_ERROR M

I'm new to AWS CodePipeline and never had past experience with any continuous integration tool like Jenkins, etc. I have created a new AWS CodePipeline as AWS CodeCommit (Code repository) -> CodeBuild (not docker, and environment is NodeJS 7)-> AWS…
12
votes
2 answers

CannotPullContainerError: Error response from daemon: pull access denied for ECR Repo Image, repository does not exist or may require 'docker login'

I have pushed a docker image in an ECR Repo in SourceAccount. I have deployed a codepipeline in the SourceAccount. When that codepipeline is run, it deploys ECS stack in TargetAccount. In that stack, ECS tasks are created with containers using the…
MAK
  • 1,915
  • 4
  • 20
  • 44
12
votes
1 answer

AWS CloudFormation CodePipeline: Could not fetch the contents of the repository from GitHub

I'm attempting to setup an AWS CloudFormation configuration using CodePipeline and GitHub. I've failed both at my own example project and the tutorial: Create a GitHub Pipeline with AWS CloudFormation. All resources are created, but in CodePipeline…
shmck
  • 5,129
  • 4
  • 17
  • 29
12
votes
3 answers

Custom version label with aws code pipeline

I'm using AWS CodePipeline with CodeBuild to build and deploy my application to ElasticBeanstalk. CodePipeline generates version names like this: code-pipeline-1122334455667-MyApp-1ac31f7c-1343-471x-a7e8-46b24f1785a Is it possible to customize these…
12
votes
2 answers

How to trigger AWS Codebuild When Creating Pull Request in CodeCommit?

Our ci workflow is this run eslint in precommit push to feature branch open pull request in codecommit trigger aws code build run tests if all tests passed, merge trigger aws code deploy to deploy For now I noticed that codebuild will trigger on…
Karias Bolster
  • 955
  • 3
  • 17
  • 31
12
votes
5 answers

Working with manual approvals for multiple builds in AWS CodePipeline

We have a CodePipeline set up to do a build, deploy to a QA ECS environment, then a manual approval step to deploy to Prod. What gets confusing though, is when there are several builds running one after another. Several builds get deployed to QA in…
kos
  • 1,770
  • 2
  • 19
  • 41
12
votes
5 answers

AWS CodeBuild GetAuthorizationToken failed

I'm trying to build my testing project, but everytime It failed in pre_build. I check the error log and it says: [Container] 2017/03/26 19:28:21 An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User:…
11
votes
3 answers

Unable to create pipeline because of service role

Even though I have created just a role specific to codepipeline and code build I am getting this error. Whatever I do I am unable to get rid of it. Anyone know how to resolve this? Could not update the service role policy. The following message…
kru
  • 403
  • 5
  • 18
11
votes
2 answers

CodeBuild (AWS) from CodePipeline (AWS) is not working

I have created a code build project from code pipeline wizard with all the necessary required options and valid IAM role. I have added IAM role policy as well which is required for accessing and writing the data inside S3 bucket. below mentioned…
Vee Mandke
  • 578
  • 1
  • 11
  • 28
11
votes
5 answers

Cannot have more than 0 builds in queue for the account

I'm newbie in AWS, with my free tier account I'm trying to build my nodeJS project with AWS CodeBuild but I get this error: Build failed to start The build failed to start. The following error occured: Cannot have more than 0 builds in queue for…
al1812
  • 340
  • 1
  • 6
  • 17
11
votes
1 answer

Code Build Access denied while downloading artifact from S3

My CodeBuild is configured with CodePipeline. S3 is my artifact store. I continue to get an Access denied message despite having attached IAM roles with sufficient access. Screenshot of the error message I have already checked the service role…
Sashi
  • 2,659
  • 5
  • 26
  • 38
11
votes
1 answer

CodePipeline: CodeDeploy reports "BundleType must be either YAML or JSON"

buildspec.yml: version: 0.2 phases: build: commands: - echo Build started on `date` - echo Compiling the Python code... - python HelloWorld_tst.py post_build: commands: - echo Build completed on…
11
votes
2 answers

Use two sources in an AWS-CodePipeline pipeline

I have a specific case which I'm not sure if it's possible with AWS CodePipeline. I'm not able to find any information about such scenario in the documentation and google. So I would like to know if I can set two sources in a pipeline (it could be…
11
votes
3 answers

AWS CodeBuild Badge update on CodePipeline trigger

I've created an AWS CodeBuild project that includes a build badge and when I trigger the build manually, all works OK (i.e. the badge is updated). I've now added a CodePipeline project that triggers that build based on a GitHub checkin. I can see…
Tirinoarim
  • 624
  • 7
  • 14