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

How to handle DB migration using AWS deployment tools

Amazon Web Services offer a number of continuous deployment and management tools such as Elastic Beanstalk, OpsWorks, Cloud Formation and Code Deploy depending on your needs. The basic idea being to facilitate code deployment and upgrade with zero…
9
votes
2 answers

CodeDeploy can't find my AWS Lambda Function

I have an Issue with CodeDeploy and AWS Lambda when they work inside AWS CodePipeline. This is my setup: Source GitHub AWS CodeBuild AWS CodeDeploy The Issue Step 1. and 2. work without a problem, but when it comes to CodeDeploy I get the…
9
votes
2 answers

Blue green deploy for codedeploy fails ( The deployment failed because no instances were found in your green fleet. (Error code: NO_INSTANCES))

I'm trying to setup a blue/green deployment with CodeDeploy. So far I've set it up with to manually provision instances using an autoscaling group that I've created. Additionally I've enabled load balancing and linked it to an ALB. The ASG I…
John Mike
  • 1,175
  • 2
  • 12
  • 19
9
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
  • 2,998
  • 3
  • 24
  • 55
9
votes
1 answer

How do I make AWS CodeDeploy to use AWS CodeCommit as a Git repo?

I cant't find any documentation about this! Every example is based on GitHub repos but how can I do this with AWS CodeCommit?
8
votes
1 answer

AWS Error: "Access Denied" in CodeDeploy after Jenkins build

I've set up Jenkins on an EC2 instance that runs build when changes pushed to the master branch in github. Once the build on jenkins passes, it triggers a process to zip the source code and puts it in a specific S3 bucket. Then the CodeDeploy…
nael
  • 1,321
  • 15
  • 32
8
votes
2 answers

Deployment using CodeDeploy failing at "install" step due to error "File already exists"

This is the error I am getting at the "install" step - File already exists at location /var/cake_1.2.0.6311-beta/app/webroot/../../somefile.php I am unable to conclude what course of events brought to this scenario. But what I remember is this -…
Sandeepan Nath
  • 8,771
  • 17
  • 66
  • 131
8
votes
2 answers

How to make AWS CodeDeploy return an error when some of appspec hooks fails?

I have an AWS with two instances. I have configured CodeDeploy to deploy my project automatically on all instances. In the appspec.yml I have that section: hooks: AfterInstall: - location: codedeploy_scripts/deploy_afterinstall …
Stalinko
  • 1,984
  • 16
  • 24
8
votes
2 answers

AWS CodeDeploy executes before Auto Scaling userdata scripts finishes

I'm trying to setup an Auto Scaling Group in combination with CodeDeploy. Everything works fine except for the fact that when a new instance is created CodeDeploy starts before the user data script (defined in the Launch Configuration) finishes. The…
Fabian
  • 12,999
  • 6
  • 27
  • 52
8
votes
3 answers

AWS Code Deploy Failing Scripts Due To Permissions

I am attempting to run a few scripts while deploying using AWS Code Deploy, but they never run due to not having permissions to run the scripts. Here is my appspec.yml file: version: 0.0 os: linux files: - source: / destination:…
gprime
  • 2,087
  • 3
  • 33
  • 49
7
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,091
  • 4
  • 16
  • 34
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

Is it possible to use AWS CodePipeline with Lightsail?

I'm working all the day and couldn't find the answer. So I'm asking you guys: is it possible to use AWS Pipeline with AWS Lightsail? My objective is to store the code inside CodeCommit and use CodeBuild, CodeDeploy, CodePipeline and S3 to create a…
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
  • 606
  • 1
  • 5
  • 18
7
votes
1 answer

Access AWS CodeBuild Variables in AWS CodePipeline

I am trying to use the AWS CodeBuild Id as a tag for my docker image. This docker image is built in the build phase of CodeBuild. I want to get this Coudebuild Id which is my docker tag in AWS Code Pipeline phase. How do i access these codebuild…
1
2
3
56 57