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
7
votes
3 answers

AWS CodeDeploy is not able to deploy lambda function

I have a simple AWS CodePipeline with few steps. AWS CodeCommit (provide output "SourceCode") AWS CodeBuild (input "SourceCode", npm install, npm run-scripts build, output "FinalCode") AWS CodeDeploy (input "FinalCode", deploy to Lambda…
7
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 process i.e committing changes to Github and then automatically reflecting those changes in app. Now I have two options, use whether Elastic…
7
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…
7
votes
1 answer

Bitbucket integration with AWS CodeDeploy Roles Trust Relationship Error

I am trying to deploy my sampleApplication code via AWS CodeDeploy for Bitbucket I have used this tutorial, I have followed all the steps. Trust Relationship for role is like this { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", …
Parth Mahida
  • 604
  • 1
  • 5
  • 19
7
votes
3 answers

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,975
  • 5
  • 26
  • 46
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
  • 745
  • 5
  • 12
7
votes
2 answers

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

Setting directory owner and permission with appspec.yml through Amazon Web Service CodeDeploy

I'm deploying a Node.js application through Codeship using the CodeDeploy AWS deployment system. I am making use of the appspec.yml file to set the owner and permissions of one of the deployed directory. I want to allow read/write for any files that…
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,384
  • 1
  • 17
  • 14
6
votes
2 answers

AWS CodeDeploy agent not installing on ubuntu 22.04

I tried installing codedeploy agent on ubuntu 22.04 but not working. I have installed ruby 2.6.0 via rbenv. ubuntu@ip-172-31-37-7:~$ sudo ./install --sanity-check deb I, [2022-08-10T06:26:28.905059 #47961] INFO -- : Starting Ruby version check. I,…
6
votes
3 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…
6
votes
3 answers

Elastic Beanstalk: `.ebextensions` not getting executed

I'm deploying a PHP application to Beanstalk and all appears to be fine, however my .ebextensions configuration files don't seem to be running. I have just a single configuration file that is supposed to create a file, and then reload…
6
votes
1 answer

AWS CodeDeploy requires two target groups, but why?

AWS CodeDeploy requires two target groups obligatory. I work with only one, and I don't need a second target group. But when I try to use just only target group I receive this message Target group pair must have distinct target groups. I don't…
6
votes
3 answers

Cleaning Up Old Files in AWS CodePipeline

I have CodePipeline set up to build and deploy a static Vue site from my Github repo to an S3 bucket. But since the built files have hashed names (e.g. app.2c71f2bb.js), after each deploy, the old files still remain in the bucket. I'm wondering…
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
  • 15,969
  • 35
  • 115
  • 173