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

AWS Codedeploy deploying successfully but ignoring .htaccess

I have a working setup of the codedeploy which deploys when I commit to my repository. Following is my appspec.yml configuration - version: 0.0 os: linux files: - source: / destination: /var/www/html/ permissions: - object:…
0
votes
1 answer

assuming role, trust relationship issues

i am using codedeploy to deploy my code to server. 3 days back it was working fine. but suddenly it fails to assume role although it was working fine previously. error : { "Code" : "AssumeRoleUnauthorizedAccess", "Message" : "EC2 cannot assume the…
0
votes
1 answer

aws codedeploy long-running process

Aws codedeploy is being applied. The appspec file is shown below. version: 0.0 os: linux files: - source: script/install-file.sh destination: /home/ hooks: AfterInstall: - location: script/install-file.sh timeout: 120 runas:…
0
votes
1 answer

AWS + Github Auto-deploy: hooks does not work

I'm playing with AWS Code Deploy and want to setup automatically building environment. What I've done: 1. Configured `Code Deploy` for my GitHub repository. (it deploys fine) 2. Added AWS Code Deploy service in Github settings of my repo. 3. Added…
smart
  • 1,975
  • 5
  • 26
  • 46
0
votes
1 answer

AWS Codeploy unauthorized when connecting to a Github organization repo

Recently, I've started experiencing failures in my deployments in CodeDeploy. This problem is always happening at the Download Bundle phase, which is logging the following error: Error CodeUnknownError Script Name MessageCould not download bundle…
0
votes
1 answer

AWS: can't create code deploy application

I've created IAM Instance profile following this guide: http://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-iam-instance-profile.html Then I'm trying to create CodeDeploy application and set this IAM instance profile, but…
smart
  • 1,975
  • 5
  • 26
  • 46
0
votes
2 answers

Jenkins to build CloudFormation Stack then deploy code via CodeDeploy plugin

I'm using Jenkins with CloudFormation and CodeDeploy plugin. I am able to use jenkins to build CloudFormation stack when there is new commit to my git repo. I'm able to deploy code to my EC2 instances in auto scaling group via CodeDeploy plugin as…
0
votes
1 answer

AWS codedeploy throwing error missing script: stop

This the Error Error CodeScriptFailed Script Namescripts/stop.sh MessageScript at specified location: scripts/stop.sh run as user root failed with exit code 1 Log TailLifecycleEvent - ApplicationStop Script - scripts/stop.sh [stderr]npm ERR! Linux…
Adiii
  • 54,482
  • 7
  • 145
  • 148
0
votes
1 answer

Hip hop error log showing syntax errors and deployment process getting stuck on doing hot deployment parallely (allAtATime) via AWS Codedeploy

We tried this POC to deploy code via AWS Code deploy on 20 live servers, which are behind Load balancer. We are having nginx running in front of Hiphop. We tried hot deployment, i.e. deploying while nginx was running. As soon as the deployment…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
0
votes
1 answer

CodeDeploy unsets LoadBalancer while cloning AutoScalingGroup

After CodeDeploy clones AutoScalingGroup, it leaves LoadBalancer field empty. This leads to following problem: when instance webserver dies, ELB does not understand instance is "down", this instance is not replaced automatically. However, if i set…
0
votes
1 answer

Prevent appspec from running scripts (disable hooks)

I'm new to codedeploy. I managed to make a deployment to an ec2 instance successfully (and using git to manage code so everything works beautifully now). I want some other people besides myself working in the project to be able to deploy source code…
Saint
  • 391
  • 3
  • 10
0
votes
1 answer

Parsing output of a Windows batch file to use in next batch file command

I am doing some Windows batch file "programming" to use AWS CodeDeploy to register an application revision. Here's what I have so far in my batch file: @echo off aws --region us-east-1 --endpoint-url https://codedeploy.us-east-1.amazonaws.com deploy…
slantalpha
  • 515
  • 1
  • 6
  • 18
0
votes
1 answer

Removing instances from HAProxy during AWS CodeDeploy

Our application requires the use of HAProxy to load balance and route traffic (one per AZ), ALBs and ELBs are not configurable enough for our purposes. When deploying new code via AWS CodeDeploy, we would like the instances being patched to be…
Andrew
  • 3
  • 2
0
votes
1 answer

is it possible to use custom load balancer for aws blue/green codedeploy?

We are using custom load balancer to load balance udp traffic in our system. We were able to create a ASG group for the instances behind load balancer, but we are not able use blue/green codeDeploy to deploy the application. Is there a way we can…
user2225713
  • 253
  • 2
  • 9
0
votes
1 answer

With AWS Powershell commandlets, how do I specify a different endpoint for S3 buckets

I have AWS instances in several regions (us-east-1, us-west-2). I use CodeDeploy to take .zip files stored in S3 and deploy them to AutoScale groups. However, since the S3 bucket only exists in us-east-1, and I am attempting to deploy to…