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.

855 questions
45
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,725
  • 2
  • 18
  • 26
24
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,693
  • 2
  • 19
  • 34
20
votes
5 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:…
20
votes
5 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,739
  • 5
  • 28
  • 61
18
votes
2 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,248
  • 1
  • 15
  • 34
16
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
  • 947
  • 1
  • 12
  • 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
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,186
  • 2
  • 9
  • 24
15
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…
13
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
1 answer

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
  • 10,951
  • 34
  • 129
  • 188
11
votes
1 answer

CodePipeline: CodeDeploy reports "BundleType must be either YAML or JSON"

buildspec.yml: version: 0.2 phases: build: commands: - echo Build started on `date` - echo Compiling the Python code... - python HelloWorld_tst.py post_build: commands: - echo Build completed on…
11
votes
2 answers

NPM issue deploying a nodejs instance using AWS codedeploy

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…
Ali Parr
  • 4,587
  • 3
  • 27
  • 34
10
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…
10
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
  • 837
  • 3
  • 20
  • 40
1
2 3
56 57