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

AWS CLI - CodeDeploy Create-Deployment has Unknown Options error

I have a normal CodeDeploy package which is able to deployed using the Console without any issues, but when using the CLI, I get a weird error. aws deploy create-deployment --application-name MyApp --s3-location…
Matt
  • 189
  • 1
  • 10
0
votes
1 answer

Problems installing mailchimp3 with pip

When I put mailchilmp3==1.0.26 in my requirements.txt and run pip install -r requirements.txt it works locally, but when deploying to our AWS instances (via circleCI and codedeploy) I get the following error: Downloading/unpacking mailchimp3==1.0.26…
Andrew
  • 1,890
  • 3
  • 16
  • 35
0
votes
1 answer

Jenkins triggered code deploy is not including subdirectories while creating the zip file

The directory structure of my jenkins workspace is this - |- appspec.yml |- afterInstall.sh |--- |codebase The problem is that zip being prepared is not containing the codebase directory. Following is a screenshot of what I have enetered in…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
0
votes
2 answers

AWS codedeploy deployment throwing "[stderr] Could not open input file" while trying to invoke a php file from the sh file at afterInstall step

I have the following defined in the appspec file - hooks: AfterInstall: - location: afterInstall.sh Following is the content of afterInstall.sh (I am trying to invoke a php file from the sh file) - php afterInstall.php Both the files…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
0
votes
1 answer

/usr/bin/env: node: Permission denied for nodejs using AWS Code Deploy

I wrote a script for deploying code to EC2 instance using AWS Code Deploy, my files are getting copied to the destination, then my hooks run, remove commands, cd commands are running fine but when the following command is run:…
user2379271
  • 613
  • 2
  • 7
  • 15
0
votes
2 answers

bug in codedeploy afterinstall hook?

We have autoscaling set up for our symfony3 application. We are using aws codedeploy to deploy to autoscaling instances. My appspec.yml file version: 0.0 os: linux files: - source: / destination: /usr/share/nginx/ hooks: …
0
votes
1 answer

How to properly user Code Deploy (AWS) with laravel 5.*

Ive been using Laravel and AWS for about a year now, i know there are people that deploy using code deploy (AWS) I have attempted doing it myself. But i want it to work with a load balancer and auto scaling group. Can anyone point me to a tutorial…
0
votes
1 answer

Codedeploy fails to run on freshly scaled VM

I have codedeploy setup to deploy to an autoscaling group. I also have a jenkins build setup to build and deploy to code deploy. When I use the jenkins box to deploy to codedeploy, every instance within the autoscaling group gets deployed to and…
CamHart
  • 3,825
  • 7
  • 33
  • 69
0
votes
1 answer

Setting up Git repository using AWS Code Deploy

I have setup AWS Code Deploy with my github project. Deployment works without fail. When I login to EC2 instance, I see my project folder and all the files, but don't see the project as a git repository. I can run git init and it will be git repo,…
RC_02
  • 3,146
  • 1
  • 18
  • 20
0
votes
1 answer

Execute msbuild in PowerShell via AWS CodeDeploy Agent

I need to deploy a Web API service on an Amazon EC2 instance. I have configured AWS CodeDeploy to download sources from the GitHub repository and put them on the target EC2. I have installed CodeDeploy Agent on the server with Windows Server 2012.…
Slava Mvv
  • 53
  • 1
  • 7
0
votes
1 answer

AWS User data windows standard AMI

I'm trying to use codedeploy with autoscaling in order to automate the deployment of my application. I have everything ready. When developing all the parts (hooks' scripts, roles etc) I installed the codedeploy agent manually. Now I want to make it…
Alkis Kalogeris
  • 17,044
  • 15
  • 59
  • 113
0
votes
1 answer

Continuous deployment for node.js applications using CI and CodeDeploy

I am having trouble figuring out how to setup continuous deployment for my node.js application (through aws CodeDeploy). So far I completed following steps: Created IAM user with required permissions Created Elastic Beanstalk instance running…
0
votes
2 answers

"\xCB" from ASCII-8BIT to UTF-8 in Amazon Code Deploy

I get this error after creating a new instance in an autoscale group and trying to deploy. I also get this error if I create a new instance (not part of autoscale group) and deploy to it. If I log into this newly created instance, and restart the…
Deonvdv
  • 51
  • 1
  • 5
0
votes
1 answer

CodeDeploy Script does not exist at specified location - appspec.yml

I am trying to deploy my app on AWS with CodeDeploy. Here is my appspec.yml file: version: 0.0 os: linux files: - source: / destination: /home/ec2-user/todos // <== this dir already exists in my instance hooks: ApplicationStop: ... …
w0ns88
  • 344
  • 2
  • 9
  • 28
0
votes
1 answer

AWS CodeDeploy Keeps Failing - Is it my appspec.yml config causing this?

I'm attempting to troubleshoot my failed deployments and cannot locate any logs for CodeDeploy. I have a CentOS 7 server with a website running on Apache at /var/www/html/. reset.sh is suppose to reset file/folder permissions after a deployment. My…
tylersDisplayName
  • 1,603
  • 4
  • 24
  • 42