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
0
votes
1 answer

Scheduled Deployment for CodeDeploy

I'm trying to save our AWS cost. What I am doing right now is to terminate ec2 instances at 8pm then launch them again at 8am. I was able to do this via Skeddly (http://www.skeddly.com/). The problem is the codes are not update every time I launch…
Kevin Antonio
  • 578
  • 3
  • 13
0
votes
2 answers

AWS CodeDeploy using Github Failing

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 are experiencing problems. (Error code:…
0
votes
1 answer

CodeDeploy fails at DownloadBundle saying Broken pipe @ io_write -

I am using CloudFormation, CodePipeline, CodeDeploy, & CodeCommit to deploy a Rails app to an EC2 instance. Once the stack is built, CodePipeline kicks off and the first deploy succeeds without issue, but each deploy after that fails at the…
0
votes
0 answers

Prevent root in appspec.yml

I set up CodeDeploy with Bitbucket UI. So if I'm sharing my repo with someone he can deploy to the server. And he can also modify appspec.yml file, what means that he could add hooks and run them as root user. I know that this is unlikely could be…
0
votes
1 answer

How are application updates delivered to the customer using code deploy?

How could I deploy the code from my S3 bucket to someone else's code deploy application? For example, I push the code to my S3 bucket using: aws deploy push --application-name CodeDeployApplication --s3-location…
0
votes
1 answer

How to remove AWS CodeDeploy bundle.tar from instance after deploy

I set up CodeDeploy with BitBucket. So I can deploy my latest commits via Bitbucket UI. But every deploy it creates a bundle.tar on instances to this directory /opt/codedeploy-agent/deployment-root/ I tried to add a hook AfterInstall, simple bash…
artnikbrothers
  • 305
  • 3
  • 17
0
votes
1 answer

Error code: HEALTH_CONSTRAINTS in Blue/Green Deployment

I am working with Blue/Green Deployment using AWS CodeDeploy. The sample deployment provided by AWS is working fine but when I am doing the same thing using custom Deployment, I am getting the following error: The overall deployment failed because…
0
votes
2 answers

Deployment getting failed in aws code deploy before install

I have created a new instance and attached instance role for it and installed code-deploy agent in it as per the documentaion. Then I have created a application and trying to deploy sample revision ie SampleApp_Linux which is provided in aws…
chandra
  • 123
  • 1
  • 1
  • 10
0
votes
1 answer

How to git pull using aws code deploy

Suppose we already have: Existing infrastructure with few instances in a load balancer Existing github account and application already deployed in the instances How can I achieve following using aws code-deploy? We have multiple commits since last…
Prabhath Kota
  • 93
  • 1
  • 7
0
votes
2 answers

CodeDeploy Fails but files make it to EC2 Instance in the wrong place

I set up CodeCommit -> CodePipeline -> CodeDeploy and the deploy fails, but the files I commited to CodeCommit show up in /opt/codedeploy-agent/deployment-root/b20baedc-1ba0-408e-b74c-8615b3d87f74/d-AN5IXPSZJ/deployment-archive This is the error…
0
votes
1 answer

Codedeploy + Puppet logs

I am running puppet scripts using AWS codedeploy. When a puppet script fails, I do not have any reference to it. In codedeploy-agent.log I just see success logs. Is there a way to see the output of the puppet scripts I run through codedeploy?
guyyug
  • 897
  • 1
  • 11
  • 23
0
votes
1 answer

Code-Deploy is seccessful but then autoscale terminates all instances

A new issue has just started yesterday from months of working correctly with nothing being changed to jenkins or aws settings I have 5 Machines in an autoscale group with git push triggering jenkins to build and then use the jenkins aws codedeploy…
Bbbh
  • 321
  • 7
  • 20
0
votes
1 answer

Is CodeDeploy requires to keep deployment scripts in build archive?

I'm tried to deploy my build archive hosted on S3 and getting the following error during beforeInstall: Script does not exist at specified location:…
0
votes
1 answer

Is it possible to deploy JS files over EC2 instance using AWS CodeDeploy

I am trying to figure-out the right way to deploy my code from bitbucket to AWS EC2 instance. Earlier, I was using git clone by having git installed on the EC2 instance and adding that as remote and pushing code to that but this time I am trying to…
0
votes
1 answer

Github->AWS CodeDeploy when changing certain files

I've tried to configure auto deployment from github to aws codedeploy. I found some useful tutorials (like https://blogs.aws.amazon.com/application-management/post/Tx33XKAKURCCW83/Automatically-Deploy-from-GitHub-Using-AWS-CodeDeploy) and it works.…
Vitaliy
  • 137
  • 1
  • 10