Fork me on GitHub
#aws
<
2018-03-27
>
yogidevbear16:03:21

Hi everyone 👋 Not really a Clojure question, but more of an AWS-specific query. Does anyone here have experience with AWS ELB / auto-scaling and deploying code updates across load balanced instances? We've been experimenting with CodeDeploy, CodePipeline and CodeBuild, but we're not quite getting the expected end result. I feel like we're missing a step somewhere to tell AWS to fetch our code from GitHub and potentially run a few other bash scripts, etc.

danm16:03:54

Hmm. So you have a standard AMI and on startup it loads the code you want?

danm16:03:37

I'm probably not going to be so useful here 😞 We run an in-house system that bakes new AMI snapshots for code deploys, so the component comes online and already has the code in place, init scripts to run it on boot etc. Deploying a new version is a case of baking a new AMI and then doing a rolling update of all the instances to use the new AMI snapshot using CloudFormation

yogidevbear16:03:08

I've created an EBS backed AMI which would be used in the auto scaling process

yogidevbear16:03:14

And I need to run some steps to build and deploy an Angular app and an API to the var/.../... folders

yogidevbear16:03:10

Same update steps would need to be run code code commits in the git repos

yogidevbear16:03:26

For existing instances already running

danm16:03:40

Aah yeah, different pattern. We would bake the app and API pre-installed into the AMI, then just use EBS volumes for log storage or data or similar. So new code = new AMI, kill and replace the instances in the ASG X at a time