News for hackers. Stuff that matters.
Re:AWS CloudFormation now supports blue/green deployments fo... by WatchDog on Wednesday May 20, 2020 @06:21AM (#23245214)
I find ECS particularly, ECS on EC2, to be really painful for small deployments.

I just want a cluster that scales in and out to the amount of memory my tasks need, I'm not very concerned about CPU. Until capacity providers it was more or less impossible to do so without having a bunch of excess capacity provisioned. Even with capacity providers, I can't seem to get a cluster to scale in to 0 instances when no tasks are needed.

I have one ECS service that requires an EBS volume mount, which means that when the task definition is updated, I need the service to stop, so that the new task can mount the same volume. This deployment model is essentially impossible without implementing a custom deployment strategy.

Fargate makes things a bit easier, and now that you can use EFS volumes with it it might make more sense. But overall, everything in ECS just seems poorly designed, clunky and hacky, like many AWS products.

Re:AWS CloudFormation now supports blue/green deployments fo... by friend-monoid on Wednesday May 20, 2020 @08:04AM (#23245841)
You can’t do EFS on Fargate in CloudFormation yet though.
Re:AWS CloudFormation now supports blue/green deployments fo... by scarface74 on Wednesday May 20, 2020 @08:33AM (#23246118)
True. But you can do it with a custom resource.

https://gist.github.com/guillaumesmo/4782e26500a3ac768888daa...

Re:AWS CloudFormation now supports blue/green deployments fo... by WatchDog on Wednesday May 20, 2020 @07:13PM (#23253108)
You also cant use capacity providers with cloudformation yet. Likely due to the fact, that you also cant delete capacity providers, nor change a cluster's default capacity provider.