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

Ec2TagFilters in deployment group for ComputePlatform: Lambda

I'm trying to work my way through a Cloud Formation stack creation. The stack includes an AWS::CodeDeploy::Application using CodePlatform: Lambda. It also has an AWS::CodeDeploy::DeploymentGroup. If I run create-stack without the deployment group…
4
votes
1 answer

AWS code deploy after install whoami issues

I'm migrating away from Envoyer to AWS code deploy to auto-deploy my Laravel app. So I added this to my afterInstall script: cd /project directory composer install if [ -f artisan ] then php artisan migrate --force fi if [ -f artisan ] then …
abbood
  • 23,101
  • 16
  • 132
  • 246
4
votes
3 answers

AWS CodeDeploy hooks scripts execution location

I am currently using CodeDeploy for a NodeJS application of mine and I just have 1 burning question, is there a way to instruct say, my BeforeInstall script to run on the revision root instead of the root directory of my Linux OS? For instance, the…
4
votes
0 answers

AWS CodeDeploy - The security token included in the request is invalid

I am trying to setup Codedeploy with Github but keep getting: The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group…
Marin
  • 303
  • 3
  • 11
4
votes
1 answer

scripts/install_dependencies.sh run as user root failed with exit code 127

I am using Amazon Linux Error: 2017-11-05 08:28:41 ERROR [codedeploy-agent(2818)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Error during perform: InstanceAgent::Plugins::CodeDeployPlugin::ScriptError - Script at specified location:…
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
4
votes
3 answers

Auto Deploy Angular 4 App using Bitbucket Pipeline and AWS CodeDeploy

I have an Angular 4 app with MongoDB and NodeJS. I have been looking into auto deployment of my app on amazon AWS EC2 instance. I am using BitBucket repo for my project. After reading through articles I have come across Bitbucket Pipeline and AWS…
BeeBee8
  • 2,944
  • 1
  • 27
  • 39
4
votes
3 answers

AWS CodeDeploy Blue/Green with ASG - Failed Deployment Keeps Restarting EC2 Instances

My test application has 3 EC2 instances. After a failed deployment, I noticed that the ASG keeps bringing back the failed instances. So after 3 failed deployments, I now have 12 instances running: 9 from the failed deployments, 3 from the live…
echen
  • 2,002
  • 1
  • 24
  • 38
4
votes
1 answer

Prevent AWS CodeDeploy from adding a lifecycle hook to an Auto-scaling group when creating a deployment group?

Recent functionality added to AWS CodeDeploy causes it to add a lifecycle hook to an Auto-scaling group whenever that Auto-scaling group has been targeted by a new deployment group. The lifecycle hook causes a deployment to be triggered whenever a…
jcgrowley
  • 709
  • 1
  • 8
  • 21
4
votes
1 answer

Unable to capture changes to log file via nagios check_logwarn plugin command invoked via PHP exec() triggered via Jenkins

I am using nagios check_logwarn to capture changes to log files. In order to test my setup, I have been manually adding the following log line to the concerned log file - [Mon Mar 20 14:24:31 2017] [hphp] [12082:7f238d3ff700:32:000001] [] \nFatal…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
4
votes
2 answers

Amazon Web Services > CodeDeploy > BitBucket > My nodejs Appspec.yml is broken

I am trying to get a very simple nodejs app to go though my setup (BitBucket to AWS), and I can get the default example to work: https://github.com/awslabs/aws-codedeploy-samples/tree/master/applications/SampleApp_Linux But that example is in…
4
votes
2 answers

Service Role ARN blank in CodeDeploy

I am trying to setup the CodeDeploy service with one of my ec2 instances. On the form to do this, everything works properly until I reach the "Service Role" section. This field does not display any possible ARNs. This is what I see: I created an…
chackerian
  • 1,301
  • 2
  • 15
  • 29
4
votes
3 answers

Amazon CodeDeploy. Deployment failed

I have been configuring AWS CodeDeploy for a few days and my first deployment is failing. The error message I get reads "The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available…
Slava Mvv
  • 53
  • 1
  • 7
4
votes
3 answers

How to deploy and redeploy applications with Terraform?

I'm looking into Terraform and how to use it to setup an AWS environment. So far I have the scripts for setting up a VPC with 3 public subnets, 3 private subnets, an Internet Gateway and 3 Nat Gateways. However I'm confused as to how one would go…
4
votes
2 answers

AWS Codedeploy when Autoscaling Group set to 0 instances

I'm using Codedeploy to push to my ec2 instances within an auto scaling group. At times, that auto scaling group doesn't have any existing instances running. When I deploy in that situation, codedeploy ALWAYS fails, even though I've set the…
CamHart
  • 3,825
  • 7
  • 33
  • 69
4
votes
3 answers

Where can I get a lifecycle-action-token for aws autoscaling complete-lifecycle-action?

aws autoscaling complete-lifecycle-action --lifecycle-action-token ???????? --lifecycle-hook-name ReadyForSoftwareInstall --auto-scaling-group-name --lifecycle-action-result CONTINUE
Maxim Panfilov
  • 371
  • 4
  • 15