Questions tagged [aws-code-deploy]

AWS CodeDeploy is a service that automates code deployments to Amazon EC2 instances.

AWS CodeDeploy is a service that automates code deployments to Amazon EC2 instances. AWS CodeDeploy makes it easier for you to rapidly release new features, helps you avoid downtime during deployment, and handles the complexity of updating your applications. You can use AWS CodeDeploy to automate deployments, eliminating the need for error-prone manual operations, and the service scales with your infrastructure so you can easily deploy to one EC2 instance or thousands.

1086 questions
12
votes
9 answers

ERROR: The overall deployment failed because too many individual instances failed deployment

I'm trying to deploy using CircleCI -> S3 -> CodeDeploy -> EC2. I was able to upload deploy image onto S3 from CircleCI, but unable to deploy S3 to EC2 instance. Here's the error. The overall deployment failed because too many individual…
Noriaki Takamizawa
  • 887
  • 1
  • 10
  • 25
12
votes
3 answers

NPM issue deploying a nodejs instance using AWS codedeploy

I am currently trying to automate deployment of a nodejs application to an EC2 instance via Github and AWS Codedeploy. I have followed the instructions from here as closely as possible, but I have hit a snag with my AfterInstall hook event. Here is…
Ali Parr
  • 4,737
  • 3
  • 31
  • 35
12
votes
2 answers

AWS CodeDeploy executes before Auto Scaling userdata scripts finishes

I'm trying to setup an Auto Scaling Group in combination with CodeDeploy. Everything works fine except for the fact that when a new instance is created CodeDeploy starts before the user data script (defined in the Launch Configuration) finishes. The…
Fabian
  • 13,603
  • 6
  • 31
  • 53
12
votes
1 answer

How to handle DB migration using AWS deployment tools

Amazon Web Services offer a number of continuous deployment and management tools such as Elastic Beanstalk, OpsWorks, Cloud Formation and Code Deploy depending on your needs. The basic idea being to facilitate code deployment and upgrade with zero…
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

How can we maintain state of autoscaling group while using Blue/Green Deployment in AWS CodeDeploy?

We have setup our infrastructure for a project using Terraform, including the code-deploy, ALB and auto-scaling groups. So far, we were doing in-place deployments. But now we're trying to switch to Blue/Green deployment. Since CodeDeploy Blue/Green…
11
votes
5 answers

CodeDeploy PM2 Command Not Found

I'm trying to use AWS CodeDeploy to deploy my application. Everything seems to be working fine but I'm getting the following…
Charlie Fish
  • 18,491
  • 19
  • 86
  • 179
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…
10
votes
2 answers

How to make AWS CodeDeploy return an error when some of appspec hooks fails?

I have an AWS with two instances. I have configured CodeDeploy to deploy my project automatically on all instances. In the appspec.yml I have that section: hooks: AfterInstall: - location: codedeploy_scripts/deploy_afterinstall …
Stalinko
  • 3,319
  • 28
  • 31
9
votes
5 answers

In AWS - difference between Immutable and Blue/Green deployments?

Per AWS documentation, I get the impression that Immutable and Blue/Green are the same thing, just a different name. In both cases you are creating an entirely new set of servers and transitioning to those servers at the final step of…
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
9
votes
3 answers

Simple IAM Issue with CodeDeploy

I'm having an issue with a seemingly trivial task of getting CodeDeploy to deploy Github code to an AutoScaling Group in a Blue/Green Deployment. I have a Pipeline setup, a Deployment Group setup, and the AutoScaling Group, but it fails when it gets…
9
votes
2 answers

Blue green deploy for codedeploy fails ( The deployment failed because no instances were found in your green fleet. (Error code: NO_INSTANCES))

I'm trying to setup a blue/green deployment with CodeDeploy. So far I've set it up with to manually provision instances using an autoscaling group that I've created. Additionally I've enabled load balancing and linked it to an ALB. The ASG I…
John Mike
  • 1,895
  • 3
  • 17
  • 26
9
votes
2 answers

Deployment using CodeDeploy failing at "install" step due to error "File already exists"

This is the error I am getting at the "install" step - File already exists at location /var/cake_1.2.0.6311-beta/app/webroot/../../somefile.php I am unable to conclude what course of events brought to this scenario. But what I remember is this -…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
9
votes
3 answers

AWS CodeDeploy can't find github tar link for private repository "could not download bundle"

I am setting up AWS CodeDeploy to get revision from GitHUB private repository. I tried using both AWS CodeDeploy GUI and also aws deploy command. For GUI, I follow instruction of this page…
TLee
  • 91
  • 1
  • 6
1
2
3
72 73