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

AWS CodeDeploy: Service role Cannot assume role provided

I'm trying to setup CodeDeploy with my GitHub and I've found some issue. I've created service role as mentioned in documentation with AWSCodeDeployRole policy. During my Code Deploy Application creation process I've got an issue: Cannot assume role…
smart
  • 1,557
  • 4
  • 17
  • 41
7
votes
2 answers

Any way to trigger a CodeDeploy deployment with Terraform after changes in configuration?

I am currently migrating my config management on AWS to Terraform to make it more pluggable. What I like is the possibility to manage rolling updates to an Autoscaling Group where Terraform waits until the new instances are in service before it…
kgorskowski
  • 627
  • 4
  • 10
7
votes
2 answers

Unable to download AWS CodeDeploy Agent Install file

I am trying to download AWS Codedeploy Agent file in my Amazon Linux. I followed instructions as mentioned in http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-run-agent.html, for Amazon Linux, have created appropriate instance profile,…
arva
  • 2,264
  • 1
  • 13
  • 14
6
votes
1 answer

AWS build failed CLIENT_ERROR: authorization failed for primary source and source version

my AWS pipeline is failing with this error: I have already authenticated the GitHub account. CLIENT_ERROR: authorization failed for primary source and source version
Anyta
  • 361
  • 3
  • 12
6
votes
1 answer

The provided role does not have sufficient permissions to access CodeDeploy

I am implementing CodePipeline; using GitHub, CodeBuild and Amazon ECS (blue/green). The role I am using, is the one generated by the Pipeline: ecsTaskExecutionRole When generated, it is equipped with the following…
6
votes
1 answer

how to handle ECS deploys in CodePipeline for changes in task definition

I am deploying an ECS Fargate task with two containers: 1 reverse proxy nginx and 1 python server. For each I have an ECR repository, and I have a CI/CD CodePipeline set up with CodeCommit -> CodeBuild -> CodeDeploy This flow works fine for simple…
lollercoaster
  • 13,421
  • 28
  • 94
  • 162
6
votes
2 answers

Simple IAM Issue with CodeDeploy

I'm having an issue with a seemingly trivial task of getting CodeDeploy to deploy Github code to an AutoScaling Group in a Blue/Green Deployment. I have a Pipeline setup, a Deployment Group setup, and the AutoScaling Group, but it fails when it gets…
6
votes
4 answers

Automation using AWS Elastic Beanstalk vs AWS CodeDeploy

I am using AWS Elastic Beanstalk and have deployed my nodejs app on it. Now I want to automate this proces i.e commiting changes to Github and then automatically reflecting those changes in app. Now I have two options, use whether Elastic Beanstlak…
6
votes
2 answers

Unable to get parameters in Parameter Store aws

I'm approacching now to aws. I'm trying to store parameter in the Parameter Store of my EC2 instance, and I would get them for put in an environment variable in the AfterInstall step of Codedeploy. The deploy works, but I can't get the parameter…
6
votes
1 answer

CodeDeploy deployment fails: bad interpreter /bin/sh^M

I have a Meteor application I'm deploying on EC2 instances using CodeDeploy (local build -> S3 -> CodeDeploy -> EC2). I'm running into an issue I didn't have a week ago: when creating a deployment, it fails at the ApplicationStop step with the…
6
votes
3 answers

AWS CodeDeploy can't find github tar link for private repository "could not download bundle"

I am setting up AWS CodeDeploy to get revision from GitHUB private repository. I tried using both AWS CodeDeploy GUI and also aws deploy command. For GUI, I follow instruction of this page…
TLee
  • 61
  • 1
  • 5
6
votes
4 answers

AWS CodeDeploy Github File Already Exist

I am trying to use AWS CodeDeploy to pull my latest changes from Github down to a server. The problem I am running into is on the install step I am getting this error: Error CodeUnknownError Script Name MessageFile already exists at location…
Devin Dixon
  • 9,088
  • 20
  • 70
  • 136
6
votes
1 answer

Github Oauth token for Golang

We use AWS code deploy to deploy the Github projects to Ec2 instances every time it deploys it asks for Github username and password to download the repository. Found following ways to solve this Supply Uname & Pwd (not preferred) Setup SSH Key…
Itachi
  • 1,183
  • 10
  • 22
5
votes
2 answers

AWS CodeDeploy-Agenten on Ubuntu 20.0LTS, Ruby errors

I've got some errors, while trying to install the AWS code-deploy agent via : wget https://bucket-name.s3.region-identifier.amazonaws.com/latest/install ./install auto I know the AWS documentation said 16.04 or 18.04. But wondering if I am the…
5
votes
4 answers

Setting CodeDeploy deployment environment variables

I have a CD pipeline for my NodeJS app and the pipeline contains these steps: 1) Travis CI uploads the master branch to S3 as a zip file 2) Travis CI triggers AWS CodeDeploy deployment 3) CodeDeploy grabs the .zip file, extracts it to my AWS EC2 and…
Eray
  • 6,597
  • 15
  • 62
  • 109
1 2
3
56 57