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

How to deploy with Gitlab-Ci to EC2 using AWS CodeDeploy/CodePipeline/S3

I've been working on a SlackBot project based in Scala using Gradle and have been looking into ways to leverage Gitlab-CI for the purpose of deploying to AWS EC2. I am able to fully build and test my application with Gitlab-CI. How can I perform a…
autronix
  • 2,885
  • 2
  • 22
  • 28
38
votes
7 answers

InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Missing credentials

I'm trying to deploy a GitHub project to a EC2 Instance using AWS CodeDeploy. After following 2 video tutorials an a bunch of Google answer, I'm still getting the following error: 2017-02-01 12:20:08 INFO [codedeploy-agent(1379)]: master 1379:…
27
votes
4 answers

Environment variables using AWS CodeDeploy

I have a web application that utilizes environment variables for some of its configuration (DB credentials, API keys, etc). I'm currently using Elastic Beanstalk for deployment and can easily set these from within AWS, which is great because I don't…
Jeff
  • 6,643
  • 3
  • 25
  • 35
25
votes
6 answers

AWS CodeDeploy Fail: The deployment failed because a specified file already exists at this location

I am trying to set AWS Code deploy with Github to automate my deloyment. the problem i am having is the ec2 instance is already active and has the web app code. the problem is there is also other content on the instance that I don't want under…
Lonergan6275
  • 1,938
  • 6
  • 32
  • 63
24
votes
4 answers

Code Deploy fails without any error message

so I have been trying to setup code deploy for my application, but it keeps on failing. Initially, I didn't have an appspec.yml file in repository, so I got the error message that the appspec.yml file doesn't exist. I have now included an…
relentless-coder
  • 1,478
  • 3
  • 20
  • 39
21
votes
2 answers

Deployment group's ECS service must be configured for a CODE_DEPLOY deployment controller

I've encountered following error when I'm trying to create Deployment Group for ECS Cluster in Code Deploy. I've created IAM that based on CodeDeploy ECS and its policy: { "Version": "2012-10-17", "Statement": [ { …
PPShein
  • 13,309
  • 42
  • 142
  • 227
19
votes
2 answers

Amazon Web Service CodeDeploy appspec.yml problems

I have a Node.js application which is being automatically deployed to Amazon Web Service through Codeship using the CodeDeploy AWS deployment system. During the deployment process I've set in my appspec.yml for the currently running web application…
17
votes
4 answers

How to troubleshoot ACCESS DENIED in code deploy for DownloadBundle stage

The attached screenshot is the error. There are no stderr messages for me to troubleshoot. I have already set the necessary EC2 IAM access to S3. So what could be the problem? [ [ I have also add in the user requirements for IAM, so I am not sure…
Moses Liao GZ
  • 1,556
  • 5
  • 20
  • 45
17
votes
1 answer

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

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:…
matewilk
  • 1,191
  • 1
  • 13
  • 27
16
votes
5 answers

AWS Code Deploy Error on Before Install Cannot Solve

So I am attempting to setup CodeDeploy for my application and I keep getting an error during the BeforeInstall part of the deployment. Below is the error. Error Code UnknownError Script Name Message No such file or directory -…
wmfrancia
  • 1,176
  • 2
  • 10
  • 25
16
votes
1 answer

Can I use AWS code Deploy for pulling application code while autoscaling?

I want to autoscale the infrastructure when load gets high. I am running my infrastructure on AWS. I have a requirement where I need to pull the application code from Github when autoscaling happens. As the code changes frequently, we can't take an…
15
votes
4 answers

Where are AWS CodeDeploy Deployment logs found?

I can see the logs in the AWS Console under Codedeploy, when I select the deployment and then click choose events, but they appear to be truncated. If I SSH into the instance, where are those codedeploy deployment logs located? I see logs in…
CamHart
  • 3,825
  • 7
  • 33
  • 69
14
votes
8 answers

How to auto deploying git repositories with submodules on AWS?

I have a submodule in my git repository and my directory structure is like, app -- folder1 -- folder2 -- submodule @5855 I have deployed my code on AWS by using autodeploy service. Now, on server I have code in the parent-directory but…
Varun Nayyar
  • 887
  • 4
  • 20
  • 46
14
votes
1 answer

What are the pros and cons of using AWS Code Deploy Vs Jenkins?

We are using a bunch of EC2 instances which might scale in the future (around 100 instances), now we are looking towards auto deployments using either Jenkins or AWS Code deploy. I found that we can use AWS Code deploy plugin with Jenkins, but What…
12
votes
3 answers

Is there any possibility to use CodeDeploy environment variables in section files of AppSpec file

I have website, which stored on AWS EC2 servers. We have 2 servers, one for production environment and another one for development and staging environments. Development and staging environments located in different folders. For example development…
1
2 3
72 73