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

How to run a shell script in AWS Codepipeline?

I have a PHPproject hosted in Github and Im trying to setup a Continuous Integration using AWS Codepipeline and ElasticBeanstalk. So far, Im able to get the repository contents from github and deploy it to ElasticBeanstalk. But I need to run a shell…
5
votes
1 answer

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

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…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
5
votes
4 answers

Script does not exist at specified location

"Script does not exist at specified location: /opt/codedeploy-agent/deployment-root/76b33ccc-594b-4d58-a1b8-e40d054c64b7/d-AVYMCK28I/deployment-archive/scripts/Applicationstoptest.sh" This is the error I am getting can any one please help me how to…
5
votes
2 answers

How can I deploy multiple applications to a instance using AWS codedeploy

I'm a new to codedeploy, I plan to deploy multiple applications in order to a single instance. I'm using cloudformation template to create codedeploy, and couldn't find any instruction for deploy multiple application revisions. Here is what I want…
5
votes
4 answers

AWS code deploy + bitbucket = failed (Error code HEALTH_CONSTRAINTS)

i've set up everything according to this article https://aws.amazon.com/tw/blogs/apn/announcing-atlassian-bitbucket-support-for-aws-codedeploy/ Here is my env: Instance (free tier with amazon linux) - apache 2.4 installed Security group - only…
hkguile
  • 4,235
  • 17
  • 68
  • 139
5
votes
1 answer

Deploy application using Jenkinsfile and AWS Code deploy

I am migrating from Jenkins 1.x to Jenkins 2. I want to build and deploy application using Jenkinsfile. I am able to build gradle application, but I am confused about deploying application via AWS Codedeploy using Jenkinsfile. Here is my…
user1693222
  • 73
  • 1
  • 6
5
votes
3 answers

AWS Codedeploy fails in DownloadBundle event saying No such file or directory

I'm using AWS Codedeploy to deploy my code from GitHub to AWS EC2 instance(Windows 2008 server). Deployment fails in DownloadBundle event Error stack in logs of AWS : No such file or directory -…
balajiprasadb
  • 365
  • 1
  • 5
  • 17
5
votes
3 answers

Trying to get the list of ec2 instances under a deployment group using aws command

I have created an dummy application under Codedeploy, then created a deployment group and added one EC2 instance under it. I did not do any deployments yet. I am trying to find the appropriate aws command which can get me the list of EC2 instances…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
5
votes
2 answers

What is a good way to deploy a distributed application using CodeDeploy and a CI tool?

When using AWS, it seems a nice way to deploy an application to a newly created instance is via AWS CodeDeploy. This works as follows: Set up an auto-scaling group for the application Write a user-data bash script for the auto-scaling group which…
4
votes
0 answers

AWS Code deploy using image from docker hub

I have created an AWS Codepipeline which is triggered when a new image is pushed into ECR and it deploys the application on to our ECS cluster. Now I want to do the same but get the image from docker hub and not from Amazon ECR. Is it possible? I…
4
votes
0 answers

AWS codedeploy packages installed not available in after install hook

I'm deploying a node application in aws using aws codepipeline. appspec.yaml version: 0.0 os: linux files: - source: / destination: /home/ubuntu/my-app overwrite: true hooks: BeforeInstall: - location: scripts/before_install.sh …
Susitha Ravinda Senarath
  • 1,648
  • 2
  • 27
  • 49
4
votes
1 answer

Update ECS Task definition for background service from Codepipeline - without a load balancer

Introduction I am deploying a Django app using Celery for background tasks on Amazon ECS, and we're using CodePipeline for CI/CD. I would like to be able to split this up into three ECS Services, each running only one task - this is so they can be…
4
votes
2 answers

CodeDeploy failing with error Errno::ENOEXEC with message Exec format error

I have a CodeDeploy which deploys application on Windows instances. I have a Python script which is running as part of ValidateService hooks. Below is the code I have in that script: print("hello") So, I have removed everything and just printing…
CK__
  • 1,252
  • 1
  • 11
  • 25
4
votes
7 answers

Tensorflow installation killed on AWS ec2 instance

I'm trying to use AWS EC2 instance for to test my ML project. During the package installation process of TensorFlow getting kills every time. I'm using AWS trial EC2 t2.micro type instance for my testing purposes. Type: t2.micro vCPUs: 1 Memory:…
Nipun Ravisara
  • 3,629
  • 3
  • 20
  • 35
4
votes
1 answer

Cloudformation Blue/Green Deployment HealthCheckGracePeriodSeconds

I am trying to use the Cloudformation Codedeploy Blue/Green deployment feature so have a task set that looks like the following. TaskSet: Type: AWS::ECS::TaskSet Properties: Cluster: Fn::ImportValue: !Sub…