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
59
votes
10 answers

AWS Pass in variable into buildspec.yml from CodePipeline

I have an AWS CodePipeline that invokes CodeBuild in the Build Stage. The question is how do I pass in an environment variable from CodePipeline that can be read in the CodeBuild's buildspec.yml? I know I can set environment variables in CodeBuild,…
user1432403
  • 1,533
  • 4
  • 16
  • 21
53
votes
8 answers

Unable to delete cfn stack, role is invalid or cannot be assumed

I'm new to aws cloudformation; I'm wondering if anybody knows of a way to force delete a stack when it just won't delete. It fails with this error: Failed to delete stack: Role arn:aws:iam::role/CloudFormationRole-NestedCFN-CodePipeline is invalid…
40
votes
7 answers

CodeBuild execution continues after build fails instead of stopping

I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My…
38
votes
3 answers

How do I update a CloudFormation stack with state UPDATE_ROLLBACK_COMPLETE?

Is it impossible to update a CloudFormation stack once it goes into the UPDATE_ROLLBACK_COMPLETE state? I am using CodePipeline to deploy things. I find that once a stack goes into some invalid state, many times, I have to delete the stack manually…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
36
votes
5 answers

AWS CodePipeline not able to access Organization's repositories

I am trying to setup Continuous deployments pipelines in AWS Codepipeline. While creating a pipeline I provide "Source provider" as GitHub and then connect to GitHub. I am able to see my public repositories in "Repository" drop-down in create…
33
votes
3 answers

Codepipeline: Insufficient permissions Unable to access the artifact with Amazon S3 object key

Hello I created a codepipeline project with the following configuration: Source Code in S3 pulled from Bitbucket. Build with CodeBuild, generating an docker image and storing it into a Amazon ECS repository. Deployment provider Amazon ECS. All the…
30
votes
4 answers

AWS CodeBuild failed CLIENT_ERROR: authorization failed for primary source and source version

I have already authenticated the GitHub account. My AWS CodePipeline is failing with this error: CLIENT_ERROR: authorization failed for primary source and source version
Ada_lovelace
  • 637
  • 2
  • 6
  • 18
28
votes
3 answers

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
  • 4,070
  • 4
  • 34
  • 46
27
votes
2 answers

How to make a list item conditional in Cloud Formation template?

I have the following cloud formation template that creates a code pipeline. The pipeline has three stages: Stages: - Name: "Source" Actions: - Name: "Source" ActionTypeId: Category: "Source" …
Tim W.
  • 834
  • 1
  • 9
  • 18
26
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…
26
votes
8 answers

AWS CodeBuild + CodePipeline: "No matching artifact paths found"

I am attempting to get CodePipeline to fetch my code from GitHub and build it with CodeBuild. The first (Source) step works fine. But the second (Build) step fails during the "UPLOAD_ARTIFACTS" part. Here are the relevant log statements: [Container]…
John D.
  • 2,521
  • 3
  • 24
  • 45
25
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
  • 2,064
  • 1
  • 17
  • 31
25
votes
2 answers

When do I need to have CAPABILITY_NAMED_IAM

I was editing my CloudFormation templates and suddenly AWS tells me I need CAPABILITY_NAMED_IAM. I am curious as to which change triggers this? What is a named IAM resource? Before I already "name" my resources like RoleName: !Sub…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
23
votes
5 answers

Use CAPABILITY_AUTO_EXPAND for nested stacks on CloudFormation

I am trying to use nested stack and when my ChangeSet is being executed, I got this error: Requires capabilities : [CAPABILITY_AUTO_EXPAND] I went and create a pipeline with cloudformation. This can be use to create a pipeline: Configuration: …
Tan Duong
  • 1,473
  • 2
  • 17
  • 29
23
votes
8 answers

I'm trying to integrate Bitbucket into AWS Code Pipeline? What is the best approach?

I want to integrate my code from Bitbucket into AWS Code Pipeline. I unable to find proper examples on the same. My source code is in .Net. Can someone please guide me. Thanks.
1
2 3
99 100