News for hackers. Stuff that matters.
Re:Docker Releases Plugin for Simplified Deployments into AWS by mcintyre1994 on Monday July 27, 2020 @01:56AM (#23962560)
We’re thinking about doing a similar migration. One of my concerns is that the current Beanstalk infra isn’t described in code, and when I’ve experimented a little with Beanstalk in CloudFormation it’s been horrible to write - for something a lot simpler. I obviously want us to move to using CloudFormation or something like it if we migrate, how good or bad would you say using it (or Terraform if that’s what you settled on) for Fargate is?
Re:Docker Releases Plugin for Simplified Deployments into AWS by irjustin on Monday July 27, 2020 @02:17AM (#23962635)
If you're looking for confidence in infrastructure changes then I 100% recommend fighting through the 'horrible to write' CloudFormation/Terraform.

CloudF is infra as yaml and Terra is as code. CloudF also has the CDK which can use TypeScript and be infra as code that 'transpiles' down to yaml.

All options feel terrible. It's like learning a whole new programming language that takes 10 minutes to see if your code runs or which part got stuck.

But once you've got your stack working, changes are a breeze and can be done with way way more confidence. Spinning up clone environments is barely any work.

Is it terrible? Absolutely. Is it worth it? Again - absolutely.

If I had to do it again, I would pick the CDK (more powerful), but the fight would've taken longer.

Re:Docker Releases Plugin for Simplified Deployments into AWS by mcintyre1994 on Monday July 27, 2020 @03:05AM (#23962826)
Yep I definitely agree with the importance, it’s probably the most impactful technical debt we have. Clone environments is a big driving force for it too.

I guess what I was hoping is that Beanstalk wasn’t designed with infra as code in mind, but things like Fargate were, and somehow it had become less horrible. Maybe that’s just never going to happen though and it’s the nature of the problem.

Appreciate the pointer toward CDK too, I have used it a tiny bit and it definitely seemed worth exploring further.

Re:Docker Releases Plugin for Simplified Deployments into AWS by irjustin on Monday July 27, 2020 @07:58AM (#23964240)
The code differences between ElasticBeanstalk and Fargate are not very far, but JUST far enough to be annoying.

Because you've worked with Beanstalk in the past, I would personally stick with it unless I'm looking to fight 2 issues at the same time - Learning Fargate & Learning CDK/CloudF/Terraform.

Fargate is not a panacea - Elastic Beanstalk does have very cool options/features.

Re:Docker Releases Plugin for Simplified Deployments into AWS by mcintyre1994 on Monday July 27, 2020 @08:24AM (#23964393)
I really appreciate the insight here - thanks a lot :)
Re:Docker Releases Plugin for Simplified Deployments into AWS by ramraj07 on Monday July 27, 2020 @02:12AM (#23962613)
Have you considered experimenting with AWS CDK? The code looked far more elegant than cloudformation
Re:Docker Releases Plugin for Simplified Deployments into AWS by mcintyre1994 on Monday July 27, 2020 @03:07AM (#23962834)
I have done a tiny bit, probably worth trying to move some smaller CFN templates over to it in earnest to try it out a bit more. I can definitely see it being nicer for things like Beanstalk/Fargate.