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

AWS CodeDeploy not deploying on Lightsail basic setup SSL

So I'm following this tutorial: https://aws.amazon.com/blogs/compute/using-aws-codedeploy-and-aws-codepipeline-to-deploy-applications-to-amazon-lightsail/ Which has worked admirably up until the point at which I had to actually run the deploy…
4
votes
1 answer

Codedeploy: provided target group has target type instance, which is incompatible with the awsvpc network mode specified in the task definition

ECS Service definition resource "aws_ecs_service" "service" { name = "my-service" cluster = aws_ecs_cluster.cluster.name task_definition =…
4
votes
3 answers

CodeDeploy onpremise registration failing with AccessDeniedException on Amazon Lightsail

aws deploy register-on-premises-instance --instance-name XXXXX --iam-user-arn arn:aws:iam::XXXXXXXXXXXX:user/LightSailCodeDeployUser --region ap-south-1 An error occurred (AccessDeniedException) when calling the RegisterOnPremisesInstance operation:…
4
votes
1 answer

AWS Elastic Beanstalk error: Failed to deploy application

I spent many hours to solve my problem. I use CodePipeline : CodeSource, CodeBuild that produces docker container (code from Bitbucket) and stores the image in ECR. In CodeDeploy I want to deploy that image from ECR to Elastic Beanstalk: Errors in…
4
votes
2 answers

How to fetch AWS CodeDeploy logs and show them in a BitBucket pipeline

I want to fetch CodeDeploy logs from my Amazon EC2 instance when a script fails during deployment and then show the logs in BitBucket pipelines. How can I do that? Is there any API available for fetching the logs from CodeDeploy?
4
votes
1 answer

How to provide AppSpec and Task Definition to CodeDeploy in ECR sourced pipeline

I want to trigger a blue/green ECS deploy on ECR image update. The deployment stage requires three input artifacts: imageDetail.json, appspec.json and taskdef.json. While creating a pipeline I pick ECR repository as a source, which creates an…
4
votes
2 answers

AWS Blue/Green CodeDeploy to ECS install lifecycle event timesout

As the title suggests, the blue/green deployment for ecs never finishes because the install lifecycle event never finishes and timesout. This is the picture showing that: The appspec file: version: 0.0 Resources: - TargetService: Type:…
4
votes
1 answer

AWS CodeBuild artifact handling

So I have a react with SSR project that I am trying to create a CI/CD pipeline. My project needs to deploy the following artifacts: dist folder created by Webpack appspec.yml file needed by Code Deploy script folder for scripts that are references…
4
votes
0 answers

Redirecting stdout to satisfy AWS CodeDeploy (Windows)

I have a console application deploying to a Windows EC2 instance and can't figure out how to close stdout in such a way that satisfies AWS CodeDeploy (currently it hangs until timeout on the ApplicationStart hook and then errors out "Script at…
4
votes
0 answers

How to deploy multiple git repositories all at once using AWS Code Deploy and AWS Code Pipeline?

I have 3 different repositories which has to be deployed(deploymentType is Blue/Green) to same autoscaling group. I've created 3 different code pipeline and one deployment group. Problem here is Blue/Green deployment will create new autoscaling…
4
votes
1 answer

CodeDeploy Error: "The revision size is too large. Its maximum size is 51200B."

I'm trying to set up a deployment process as follows: Travis-CI.com grabs the codebase (NodeJS), builds and tests it, uploads it to S3 as a zip and then kicks off a CodeDeploy deployment (ECS). Here is my .travis.yml: language: node_js node_js: -…
opticon
  • 3,494
  • 5
  • 37
  • 61
4
votes
1 answer

How to get a built docker image within a codepipeline to the deploy step with blue/green-deployment

I've got a flow where I want a codepipeline to trigger on git commits on Github, go via some test and build steps and end in a codedeploy step where the code will be deployed on a ECS cluster with blue/green-deployment. But I'm stuck on the last…
r0stig
  • 143
  • 1
  • 10
4
votes
1 answer

AWS CodeDeploy :bucket option must not contain a forward-slash (/)

I am kicking off a deployment from aws-cli: "C:\Program Files\Amazon\AWSCLI\bin\aws.exe" deploy create-deployment --application-name App.Web --deployment-config-name CodeDeployDefault.OneAtATime --deployment-group-name Development-Staging-UAT…
jmogera
  • 1,689
  • 3
  • 30
  • 65
4
votes
1 answer

AWS CodePipeline - Insufficient permissions Unable to access the artifact error

Trying to create and run an AWS CodePipeline that pulls from Github, builds and deploys to an EC2 instance. The pipeline is as follows: Source (Github) -> Build (AWS CodeBuild) -> Deploy (AWS CodeDeploy) The source and build steps both succeed.…
4
votes
1 answer

AWS CodePipeline with CodeDeploy to ECS cannot find appspec.yml

I've created a CodePipeline using CodeBuild and CodeDeploy that should deploy to an active ECS cluster. The container gets built without any problems. Both the buildspec.yml and appspec.yml are located in the repository root and are as…