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.

998 questions
14
votes
1 answer

AWS CodePipeline: source action has insufficient permissions for CodeStar connection

I'm setting up a CodePipeline, and I created an action to fetch the source from GitHub. This requires to set up a connection, which I did, and things look fine also on GitHub's side. However, if I release a change to the pipeline, I see the…
Salvatore Iovene
  • 1,011
  • 1
  • 7
  • 19
14
votes
1 answer

Terraform, "ignore_changes" and sub-blocks

I have a AWS CodePipeline configured in a terraform file, like this: resource { name = "Cool Pipeline" ... stage { name = "Source" ... action { name = "Source" ... …
Wrench
  • 3,060
  • 1
  • 28
  • 46
14
votes
5 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…
14
votes
3 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
  • 66,400
  • 60
  • 203
  • 323
13
votes
4 answers

Execute Terraform apply with AWS assume role

I need to execute a Terraform template to provision infrastructure for an AWS account which I can access by assuming a role. The problem I have now is I do not have an IAM user in that AWS account so I do not have an aws_access_key_id or an…
13
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,482
  • 5
  • 29
  • 61
13
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
  • 962
  • 8
  • 20
13
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
  • 3,706
  • 3
  • 21
  • 51
13
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,091
  • 3
  • 29
  • 40
12
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
  • 475
  • 4
  • 17
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
  • 3,000
  • 3
  • 15
  • 28
12
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?
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
  • 568
  • 10
  • 28
11
votes
2 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
  • 111
  • 1
  • 3
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…
1
2
3
66 67