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

Required Cloudformation Script for Blue/Green deployment on ECS

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…
5
votes
1 answer

How to deploy a dotnet core app using AWS CodePipeline to ElasticBeanstalk

I'm trying to build a basic dotnet core application and deploy it using the default tool available to me in AWS. I currently have the following steps working: Repository in CodeCommit Checkin triggers CodeBuild build step on the Ubuntu image…
5
votes
1 answer

Blue/Green deployments with Auto Scaling Groups, CloudFormation and CodeDeploy

I have tried setting up a Blue/Green deployment by copying AutoScalingGroup, however this leaves the CloudFormation stack detached from its original resources as CodeDeploy creates a new copy and deletes the original. I understand from another post…
5
votes
7 answers

The CodeDeploy agent did not find an AppSpec file within the unpacked revision directory at revision-relative path "appspec.yml"

Based on below error message codedeploy copies my archive folder to some temp location. i can locate my archive.zip folder after deployment-archive folder. The CodeDeploy agent did not find an AppSpec file within the unpacked revision directory at…
sam
  • 195
  • 2
  • 13
5
votes
2 answers

Cross-account deployement in AWS through Code-deploy service

We have two AWS account say as Dev and Prod. In Dev account,our code build,code-pipelines and Code-deploy services is configured with S3. However, In Prod account an auto-scaling group is running for the production websites. As per our requirement,…
5
votes
1 answer

How to set and get environment variables in CodeDeploy

I want to export some variable like environment name and access in the script executed using code deploy Amazon
Asif Saeed
  • 1,985
  • 14
  • 24
5
votes
1 answer

CodeDeploy running outdated appspec file?

I'm new to AWS CodeDeploy, in fact, I'm just experimenting. I'm trying to handle continuous integration using CircleCI 2.0 and AWS CodeDeploy so that when I push changes to my django project to development in github, it builds in CircleCI and then…
5
votes
1 answer

AWS CodeDeploy is impossible to deploy across multiple Availability Zones at the same time?

Below the screenshot, it seems to be successful only in one Availability Zone. I checked the codedeploy logs for a failed instance, and I found that there was an error, I think it is recognized as an on-premise instance. 2018-01-10 04:40:22 INFO …
coding8282
  • 93
  • 1
  • 9
5
votes
3 answers

Issue running linux AWS CodeDeploy agent in non root context

I am using AWS CodeDeploy to deploy code to our AWS Amazon Linux instances. I followed this knowledge base article https://aws.amazon.com/premiumsupport/knowledge-center/codedeploy-agent-non-root-profile/ to have the agent execute in the ec2-user…
5
votes
1 answer

AWS CodeDeploy not working in private VPC

I have private Subnet inside VPC, with a routing table as follows: XX.X.0.X/16 local 0.0.0.0/0 nat-0XXXXXXXXX With above configuration AWS CodeDeploy fails with error as Error code: HEALTH_CONSTRAINTS with no log entry in…
MasterCode
  • 975
  • 5
  • 21
  • 44
5
votes
0 answers

Slow upload speed in aws deploy push command

I am trying to use AWS CodeDeploy. I use aws deploy push --debug command. The file to be uploaded is around 250 KB. But upload doesn't finish. Following is the logs displayed. 2017-10-27 11:11:40,601 - MainThread - botocore.auth - DEBUG -…
Halil
  • 1,795
  • 1
  • 24
  • 39
5
votes
3 answers

CodeDeploy Error Cannot allocate memory - su

codedeploy failed after few deployments(php application) with error "Cannot allocate memory - su" but in instance its sowing 51% memory in use. What could be reason for it? Error. InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Error…
Khushboo
  • 51
  • 1
  • 4
5
votes
4 answers

AWS: Code deploy installation failed

I'm trying to setup deployment from github repository via AWS. I have an issue during these steps: http://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install.html#codedeploy-agent-operations-install-linux This…
smart
  • 1,975
  • 5
  • 26
  • 46
5
votes
2 answers

AWS Codedeploy error: scripts/applicationstart.sh is not executable. Trying to make it executable

I am running Ubuntu on an EC2 instance and trying to set up code deploy to run scripts to provision the deployment in appspec.yml. However, these hook scripts do not seem to be running. When I check the code deploy error logs, I see the error…
random_0620
  • 1,636
  • 5
  • 23
  • 44
5
votes
1 answer

AWS CodeDeploy Powershell Script fail to create website & Pool in IIS server

I have an app that I am deploying using AWS Codedeploy to an EC2 instance running Windows Server 2012 R2 with code deploy agent installed. The code revision was successfully downloaded from S3 bucket to EC2 instance but PowerShell script throws…