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
6
votes
6 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
  • 7,038
  • 16
  • 70
  • 120
6
votes
4 answers

What’s the best way to deploy multiple lambda functions from a single github repo onto AWS?

I have a single repository that hosts my lambda functions on github. I would like to be able to deploy the new versions whenever new logic is pushed to master. I did a lot of reasearch and found a few different approaches, but nothing really clear.…
6
votes
0 answers

Deploy a monorepo's subdirectory on AWS CodeDeploy?

I have a monorepo like so: my-monorepo: - services/ - appspec.yml - ... - website/ - appspec.yml - ... I want to deploy the website, but not services. How can I do this using AWS CodeDeploy? It would be best to configure…
Lucas
  • 16,930
  • 31
  • 110
  • 182
6
votes
4 answers

CodeDeploy step of CodePipeline because of insufficient role permissions

I have a 3 stage CodePipeline on AWS. Source: Checks out upon commit a specific branch of CodeCommit (success) Build: Runs some tests on a docker image via CodeBuild (success) Deploy: Performs a deployment on a deployment group (a.k.a. some…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
6
votes
2 answers

AWS CodePipeline, CodeDeploy, SAM and Lambda: how to (inter)connect those?

I'm a kind of lost in the documentation. I want to push Python code to a repo and use CodePipeline to deploy Lambdas. I have CodeCommit repo, CodePipeline - so far this works and I can create/update CF stack to create supplementary resources. I…
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
  • 11,553
  • 24
  • 86
  • 167
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,383
  • 11
  • 22
5
votes
2 answers

How do i deploy a simple AWS lambda function using AWS code deploy without using SAM?

The docs say I should specify a application revision in either .yaml or .json format when calling codedeploy. But how do I deploy the actual function code through code deploy? There is no option to provide a zip with the code inside it. Only json…
5
votes
1 answer

AWS System Managers + CodeDeploy + Lightsail

I want to use AWS System Managers Store Parameters with my CodeDeploy pipeline, dropping my last commit on Lightsail. ✅ 1. I created a SSM Parameters : MySecureString. The parameters is set on SecureString with KMS encryption set on Actual account…
5
votes
1 answer

How to find the list of aws service identifiers

I'm working with aws and implementing CI/CD using their developer tools. Each of the tools requires a service role, so I decided to just update my existing service role with the correct permissions. The problem is I don't know where to find the…
5
votes
2 answers

The deployment specifies that the revision is a null file, but the revision provided is a zip file

I am using CodeDeploy integrated into CodePipeline. I am trying to deploy an image from ecr to ecs. The whole infrastructure is built with CloudFormation. The template for the Pipeline deployment…
5
votes
3 answers

CodeDeploy allowTraffic Fails but my code is still deployed on instances

I am using codeDeploy and when I run it gets stuck on in progress mode. By further researching the problem I found that it fails because of the AllowTraffic script. it just says script failed. I have looked into the logs but there are no errors.…
devGru
  • 51
  • 1
  • 3
5
votes
3 answers

AWS CodeDeploy stuck in AllowTraffic step

I'm using AWS CodeDeploy to deploy my project (triggered by CodePipeline) to an autoscaling group (EC2 instances behind an ALB). This is my appSpec file: version: 0.0 os: linux files: - source: / destination: /var/www/html/test-deploy …
BGomez
  • 71
  • 1
  • 2
  • 5
5
votes
1 answer

Unable to create deployment for ecs using aws cli (The deployment specifies that the revision is a null file, but the revision provided is a zip file)

I am trying to deploy (using Blue/Green deployment controller) a revision of my APIs. When i do this manually by creating an updated task revision and updating the service, this works fine. But when i try using the CLI, when i push the appspec.yml…
5
votes
3 answers

CodeDeploy configuration to overwrite files

I am deploying via CodeDeploy a logstash configuration in a target instance in /etc/logstash/. This is the last step in a 3-staged CodePipeline. However it fails with message The deployment failed because a specified file already exists at this…
pkaramol
  • 16,451
  • 43
  • 149
  • 324