aws-code-deploy

Files deleted or modified between git revisions are automatically getting deleted from instances

…衆ロ難τιáo~ 提交于 2019-12-10 05:23:00
问题 Background I have a setup triggered by Jenkins with the following - The files to be deployed are prepared by phing, by talking to git server and taking a git diff between the required git revisions, in a separate build server, without the involvement of AWS code deploy (as far as I think). The phing build is triggered by Jenkins. I add only the files to be added/modified (based on the git difference of revisions) dynamically to the appspec.yml file. I prepare only the files to be added

Required Cloudformation Script for Blue/Green deployment on ECS

孤街醉人 提交于 2019-12-07 21:08:02
问题 I am trying to write a cloud-formation template for AWS ECS with blue green deployment support . This blue-green feature was added recently by AWS in ECS and couldn't find any reference for updating it in cloud-formation template. They have given documentation on, how to do it through UI but not through cloud-formation. I guess, AWS might not updated their cloud-formation documentation as it is a new feature. Any help to find the documentation would be appreciated. Thanking you in advance.

AWS Deployment Failed due to “HEALTH_CONSTRAINTS”

我是研究僧i 提交于 2019-12-07 14:11:50
问题 I am working on a scenario, where I need to push the code from a GIT repository to AWS Instance. To achieve this I am using AWS CodeDeploy feature. But in the final step of the process to deploy the code, I am receiving the below error. Deployment Failed 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: HEALTH

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

不羁的心 提交于 2019-12-06 23:04:33
问题 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 - I initiated a deployment via jenkins (code deployment plugin integrated). The deployment failed at the "install" step, with the error I pasted above. Note - This is the first file in the files section of the appspec.yml file. As far as I remember, I

Auto Deploy Angular 4 App using Bitbucket Pipeline and AWS CodeDeploy

你说的曾经没有我的故事 提交于 2019-12-06 08:13:58
问题 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 CodeDeploy . There are many scenarios and configurations to be done in order to get it done. I am really confused after reading all the documentations all day. I want to auto deploy my app when code is pushed to specific branch. Can someone please

Required Cloudformation Script for Blue/Green deployment on ECS

一个人想着一个人 提交于 2019-12-06 06:28:49
I am trying to write a cloud-formation template for AWS ECS with blue green deployment support . This blue-green feature was added recently by AWS in ECS and couldn't find any reference for updating it in cloud-formation template. They have given documentation on, how to do it through UI but not through cloud-formation. I guess, AWS might not updated their cloud-formation documentation as it is a new feature. Any help to find the documentation would be appreciated. Thanking you in advance. Currently cloudformation does not support the DeploymentController parameter in which you can specify

Files deleted or modified between git revisions are automatically getting deleted from instances

a 夏天 提交于 2019-12-05 10:25:42
Background I have a setup triggered by Jenkins with the following - The files to be deployed are prepared by phing, by talking to git server and taking a git diff between the required git revisions, in a separate build server, without the involvement of AWS code deploy (as far as I think). The phing build is triggered by Jenkins. I add only the files to be added/modified (based on the git difference of revisions) dynamically to the appspec.yml file. I prepare only the files to be added/modified to a path /home/jenkins/deployment/cd_deploy/codebase/ and I have specified the path /home/jenkins

NPM issue deploying a nodejs instance using AWS codedeploy

余生颓废 提交于 2019-12-05 02:51:18
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 my yml file: version: 0.0 os: linux files: - source: /backend destination: /home/ec2-user/signal permissions: - object: / pattern: "**" owner: ec2-user group: ec2-user hooks: ApplicationStop: - location: backend/app/deploy/stop.sh timeout: 10 runas: ec2-user BeforeInstall: - location: backend/app/deploy/beforeinstall.sh timeout: 1200 runas: ec2-user

AWS CodeDeploy AfterInstall script is being run from code-deploy agent dir

此生再无相见时 提交于 2019-12-05 01:03:50
I'm trying to run AfterInstall script in AWS code deploy, but it is being run from the /opt/codedeploy-agent/ dir instead of my app directory. This is how appspec.yml file looks like: version: 0.0 os: linux files: - source: / destination: /tmp/epub hooks: AfterInstall: - location: server/install-packages.sh runas: root As you can see it's a basic example. Now, the bash script looks like this: #!/bin/bash npm install I just want to npm install and that's it. Unfortunately I'm getting the error: LifecycleEvent - AfterInstall Script - server/install-packages.sh [stderr]npm ERR! install Couldn't

Code Deploy ApplicationStart gets stuck on pending using node

此生再无相见时 提交于 2019-12-04 11:21:39
Hi I'm new to using Code Deploy. I am trying to launch a node application. I have setup.sh, start.sh and app.js in my root directory. This is my appspec.yml file version: 0.0 os: linux files: - source: / destination: / hooks: Install: - location: setup.sh timeout: 3600 ApplicationStart: - location: start.sh timeout: 3600 setup.sh yum -y install nodejs npm --enablerepo=epel npm install start.sh node /app.js app.js (just a basic dummy server) var express = require("express"); var app = express(); app.get("/",function(req,res) { res.send("Hello world") }) var server = app.listen(8080,function() {