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
21
votes
2 answers

CodePipeline: ECR source + ECS deploy configuration

Basically, I need to configure CI/CD with bitbucket source code to ECS containers. I want to use CodePipline to deploy new ECR image to ECS. Currently, there is no option in AWS CodePipline to specify bitbucket as the source. However, I've managed…
Sergey Nikitin
  • 845
  • 2
  • 13
  • 25
20
votes
4 answers

What are the pros and cons of using AWS CodePipeline vs Jenkins

What are the pros and cons of using AWS CodePipeline vs Jenkins? I can't see a whole lot of info on the interwebs (apart from https://stackshare.io/stackups/jenkins-vs-aws-codepipeline). As far as I can see they are as follows: AWS CodePipeline…
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
19
votes
5 answers

Upload to S3 failed with the following error: Access Denied - CodeStarConnections

I am building a CI/CD pipeline using AWS Codepipeline, the repository source is on bitbucket and I used the AWS-Codestarconnections to create a connection between the bitbucket repository and the pipeline. The pipeline details are below: { …
Glitch
  • 673
  • 8
  • 23
19
votes
6 answers

AWS Codebuild fails while downloading source. Message: Access Denied

I created a CodeBuild Project that uses a docker image for node8. The purpose of this CodeBuild project is to do unit testing. It takes an input artifact from CodeCommit. And in the buildspec.yml it runs a test command. This is my (simple) buildspec…
18
votes
5 answers

AWS Cloudformation Role is not authorized to perform AssumeRole on Role

I am trying to execute a cloudformation stack which contains the following resources: Codebuild project Codepipeline pipeline Roles needed While trying to execute the stack, it fails with the following error:…
18
votes
4 answers

AWS Cloud Formation Stuck in Review_In_Progress

I was trying to set up AWS Code Pipeline with AWS SAM for Lambda using Java-8 as mentioned in the documentations http://docs.aws.amazon.com/lambda/latest/dg/automating-deployment.html (example is in node.js though). However, my Staging is stuck at…
Idicula
  • 203
  • 1
  • 2
  • 7
16
votes
3 answers

Export existing CodePipeline/CodeBuild projects to Cloudformation

Is there a way to export existing CodePipeline/CodeBuild projects to Cloudformation? I'm in the process of converting our existing CI/CD infrastructure into code so it would be easy to replicate them on other AWS regions. Currently, we've done all…
16
votes
3 answers

AWS Codepipeline with a Codecommit targetsource repository from another account

Is it possible to create a codepipeline that has a target source of a CodeCommit Repository in another account?
Alex Nelson
  • 1,182
  • 9
  • 19
15
votes
5 answers

Github monorepo as source for AWS CodePipeline

We use the monorepo approach for storing our source in github. Is it currently possible to have CodePipeline trigger only on a commit to a particular subfolder. This is something that is currently possible with TeamCity by setting a filter on the…
Grant Trevor
  • 1,052
  • 9
  • 23
15
votes
2 answers

AWS codeBuild/codePipeline with serverless framework

I am trying to automate Deployment Pipeline for my application. Here is the automation architecture, I came up with: As you can see, I am using codePipeline and codeBuild to automate my deployment. My backend is based on Serverless Framework, which…
15
votes
1 answer

Conditionally create CodePipeline actions based on CloudFormation conditions

Enable / disable sections of a CloudFormation for CodePipeline using Conditionals: This creates a manual notification action once staging has been built and passed Runscope tests: - InputArtifacts: [] Name: !Join ["",[!Ref GitHubRepository,…
Eric Nord
  • 4,674
  • 3
  • 28
  • 56
14
votes
3 answers

AWS codepipe webhooks

After creating aws codepipeline, am getting error like Could not register webhook . The webhook was created, and your pipeline was updated, but the webhook could not be registered with GitHub. Wait a few minutes and then try again. If the problem…
simbu
  • 141
  • 1
  • 3
14
votes
2 answers

Viewing Unit Test and Coverage Reports Generated in AWS CodeBuild

I am using AWS CodeBuild to run unit tests for my python project using pytest. I am using the --junitxml argument and the pytest-cov package to generate test reports and coverage reports that I've listed as artifacts in my buildspec.yml. I've used…
Brian
  • 2,702
  • 5
  • 37
  • 71
14
votes
1 answer

Using IAM roles on the AWS CodeBuild worker

Is there a way to grant IAM instance roles to be used by the build process? In my particular case I need to perform some s3 operations during build (unrelated to archiving artifacts). So far the only alternative I found is to add an aws key and…
Daniel Sperry
  • 4,381
  • 4
  • 31
  • 41
13
votes
5 answers

Getting Commit ID in CodePipeline

I am using CodePipeline with CodeCommit. Builds are triggered automatically with push to master branch. In CodePipeline console it is clearly visible that i am receiving commit id but i need to get it in the build environment so i can add them as a…