Questions tagged [aws-codedeploy]

Use this tag if a question is about amazon-codedeploy

12 questions
5
votes
1 answer

Azure Equivalent for CodeDeploy

Right now, using AWS services we have a CI and deployment pattern that works well for us. For every commit pushed to github, Travis-CI builds the project and runs tests, if tests pass, Travis uses CodeDeploy to deploy to staging (an AWS EC2). On…
fgregg
  • 151
  • 3
4
votes
1 answer

Why don't the instances in the auto-scaling group get assigned public ip addresses unless it's a default vpc?

I'm trying to migrate our deployment process over to aws code deploy (by following instructions here:https://pionect.nl/autoscaling-aws-laravel-codedeploy-opsworks-chef-automation/). When I'm creating the auto-scaling group, I selected the same vpc…
abbood
  • 473
  • 4
  • 13
3
votes
3 answers

How to optimize blue/green AWS deployments?

I got the following setup with AWS code deploy: However it takes about 7 minutes from the moment I push a git branch remotely to the moment the deploy is completed. The time is broken down like so: bitbucket deploy: 45 seconds provisioning a…
abbood
  • 473
  • 4
  • 13
3
votes
1 answer

Is it possible to package an application in a .nupkg when creating an application revision in AWS CodeDeploy?

My build process packages my application in a .nupkg instead of a .zip. Assuming my .nupkg contains a correctly-implemented appspec.yml and is otherwise appropriately bundled, can my deployment revision use it?
Anthony Neace
  • 1,494
  • 1
  • 12
  • 17
2
votes
0 answers

How to deploy with AWS CodePipeline a multicontainer docker environment without dockerfile

I'm using simple docker-compose container images. Here's my docker-compose.yml version: '2' services: db: image: postgres:10.2 ports: - "5432:5432" environment: ... skipped for brevity …
2
votes
2 answers

CodeDeploy: deployment failed because a specified file already exists at this location

I build an AMI from a 'prototype' EC2 instance I created to confirm everything is working. I create a Launch Configuration and Auto Scaling Group based on the AMI. I associate the Auto Scaling Group with CodeDeploy as a Blue/Green Deployment behind…
Daniel Viglione
  • 227
  • 5
  • 9
1
vote
2 answers

How to secure appspec file?

What's the best way to ensure that developers can't modify the contents of the appspec.yml file used by AWS CodeDeploy? This file executes scripts on production servers with root privileges so it would be ideal if there were a way to ensure the…
Nelfo
  • 111
  • 2
1
vote
1 answer

Setting up CI/CD for an AWS CDK app using AWS CodeBuild/Deploy/Pipeline

I'm trying to setup a CI/CD pipeline for a dotnet app which uses AWS Lambda and AWS CDK for infrastructure. The source is on github and we have a Jenkins pipeline which runs the tests and publishes the artifacts. I want to use the artifact and…
theabrar
  • 11
  • 1
1
vote
2 answers

what is better between Jenkins & AWS CodeDeploy for CI/CD

I'm considering what is better and easier to use for CI/CD pipeline between Jenkins and AWS CodeDeploy. e.g. Jenkins server request webhook to git repo(github), and deploy to EC2. e.g. When push to git repo, deploy to EC2 go through…
0
votes
1 answer

Docker container is running but when using curl not accessible

I tried to host docker container in my EC2, just for UAT (for production, we will fargate). My concern is I want to host my container in EC2 and run all test cases, after successfully will be deployed to fargate. Here is appspec.yml version: 0.0 os:…
0
votes
1 answer

CD with CodeDeploy and GitHub Actions - why specify S3 bucket?

Following tutorials like this one, I managed to set up a continuous deployment pipe to deploy automatically via AWS CodeDeploy to my EC2 instance using GitHub actions, triggered on merging (or rather pushing) to the main branch. In most of these…
Severin
  • 101
0
votes
1 answer

Jenkins multi-agent build switching directories behind the scenes preventing AWS CodeDeploy plugin from zipping built files

I've narrowed my problem down to a very specific cause but am not sure how exactly how to fix it. A Jenkins server set up using Jenkins-configuration-as-code in a docker container runs a pipelineJob script that sets up a listener to a github repo…
Coupcoup
  • 111
  • 2