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

AWS CodePipeline error: Cross-account pass role is not allowed

I am trying to create an AWS CodePipeline that deploys the production code to a separate account. The code consists of a lambda function which is setup using a sam template and cloudformation. I have it currently deploying to the same account…
11
votes
5 answers

AWS CodePipeline build lacks Git history

Context: I have a CodePipeline set up that uses CodeCommit and CodeBuild as its source and build phases. My build includes a plugin (com.zoltu.git-versioning) that uses the Git commit history to dynamically create a build version number. Issue: This…
11
votes
3 answers

CodeDeploy to S3

I have a site in a S3 bucket, configured for web access, for which I run an aws s3 sync command every time I push on a specific git repository (I'm using Gitlab at the moment). So if I push to stable branch, a Gitlab runner performs the npm start…
11
votes
3 answers

Semantic versioning with AWS CodeBuild

Currently my team is using Jenkins to manage our CI/CD workflow. As our infrastructure is entirely in AWS I have been looking into migrating to AWS CodePipeline/CodeBuild to manage this. In current state, we are versioning our artifacts as such…
11
votes
3 answers

How to use output artifact of CodeBuild in CloudFormation?

So I have a fairly simple stack I'm trying to setup consisting of a single Lambda function subscribed to an SNS topic. I'd like to use CodePipeline with three stages: Source (GitHub) -> Build (CodeBuild) -> Deploy (CloudFormation). I managed to…
11
votes
1 answer

Least privilege AWS IAM policy for cloudformation

For small CloudFormation and CodePipeline templates we could "try - test" to get least privilege IAM Policy for the roles required. This usually involves: Starting with a minimal policy Creating the stack It fails with - stack doesn't have rights…
10
votes
6 answers

SNS notification target rule is "unreachable" when tryin to send a notification from code pipeline

I am trying to set up a notification for the code pipeline using its notification rule which supporters SNS. As you can see in the picture the status is "unreachable" If I look at the link here aws troubleshoot I have followed all the step even the…
sumanth shetty
  • 1,851
  • 5
  • 24
  • 57
10
votes
2 answers

AWS CodeBuild - EnvironmentVariables specified in action config does not match expected format

I'm trying to add an environment variable to a Pipeline action that uses AWS Codebuild. However, no matter what I add, if I choose a type of Secret Manager, the step fails with the following error: Invalid action configuration EnvironmentVariables…
10
votes
1 answer

AWS Codepipeline Github Webhook not being registered through cloudformation

I am trying to set AWS codepipeline and use github as the source by using cloudformation. The github repository is owned by an organization and I have admin access to it. I was able to create webhook and successfully create entire service through…
10
votes
2 answers

AWS CodePipeline track multiple repositories as a single source

I'm investigating whether or not CodePipeline will work for our use case: We have several hundred repositories, all hosted with CodeCommit. The build/test/release process for all of these is identical, aside from minor configuration. What I'd like…
Tom
  • 843
  • 7
  • 12
10
votes
2 answers

CodeDeploy can't find my AWS Lambda Function

I have an Issue with CodeDeploy and AWS Lambda when they work inside AWS CodePipeline. This is my setup: Source GitHub AWS CodeBuild AWS CodeDeploy The Issue Step 1. and 2. work without a problem, but when it comes to CodeDeploy I get the…
9
votes
1 answer

What is the difference between @aws-cdk/pipelines and @aws-cdk/aws-codepipeline?

These two packages seem to largely do the same thing? What is the intended difference between these two packages and also which should I be using?
9
votes
3 answers

AWS Code PipeLine not getting all repository of BitBucket account

I am using AWS CodeBuild and CodePipeline service to implement CI/CD in my project. AWS CodeBuild using Bitbucket I am getting all repository of my Bitbucket account. While Creating CodePipeLine and connect with my BitBucket, I can't get all…
Nidhi
  • 203
  • 3
  • 9
9
votes
3 answers

AWS CodeBuild secrets-manager config with environment variable

Update: Not sure when this happened, but this works as is described now. As well as an option in the Pipeline build action to set the secret directly. Original Question: I have an environment variable set for the secret-id set inside the build…
hyperdrive
  • 1,786
  • 5
  • 19
  • 33
9
votes
1 answer

The provided role does not have sufficient permissions to access CodeDeploy

I am implementing CodePipeline; using GitHub, CodeBuild and Amazon ECS (blue/green). The role I am using, is the one generated by the Pipeline: ecsTaskExecutionRole When generated, it is equipped with the following…
OneMoreNerd
  • 463
  • 1
  • 6
  • 19