The only option teams that need CI/CD for their cloud resources & want to use cloudformation for most of it is to have a side chain process for handling resources that can't be expressed with Cloudformation. (not at all insurmountable but shouldn't be necessary)
AWS CloudFormation now supports blue/green deployments for Amazon ECS
41–50 of 80 posts
Re: AWS CloudFormation now supports blue/green deployments for Amazon ECS
#42Earlier quoted context omitted.
Who builds the cloudformation support? I could understand not baking it in on an initial feature release but it should be there ’soon’. Same with Config.
I've been told that each product team is supposed to add CloudFormation support themselves. For some reason, it's not treated as a high priority and often lands on the laps of the core CloudFormation team. It may turn out that the tools that CloudFormation team provides don't make integration easy, especially if the operation takes longer than 15 minutes (meaning they can't implement support via a single lambda invoc…
But it’s hard to believe if the team responsible for the blue green deployment functionality developed an API endpoint to do it, they couldn’t just hand it to the CF team to call. At the end of the day that’s all CF does. Call APIs based on the different lifestyle events as far as how it actually creates resources.
Re: AWS CloudFormation now supports blue/green deployments for Amazon ECS
#43The ECS default deployment model is quite frankly a disaster. I've written many Python/Go scripts over the years to wrangle it into a sensible form for CI/CD. Good to see that they're working on it, but I don't know why they don't fix the underlying paradigm instead of making it Cloudformation exclusive.
I would love to know what the problem is. We do dozen of deployments every week with a ALB + ECS + Fargate setup. We upload a new container image, create a new task and launch as many tasks as desired (so if we want 2 containers running we launch 2, for a total of 4). ALB calls the /health endpoints on the new containers and if they pass the healthchecks it drains connections to the old containers and stops the tasks…
Re: AWS CloudFormation now supports blue/green deployments for Amazon ECS
#44I don’t think I’ve ever met someone that actually uses cloudformation unless a template was provided them to setup something like a lambda. Why would you when terraform exists?
Re: AWS CloudFormation now supports blue/green deployments for Amazon ECS
#45Earlier quoted context omitted.
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…
You can’t do EFS on Fargate in CloudFormation yet though.
https://gist.github.com/guillaumesmo/4782e26500a3ac768888daa...
Re: AWS CloudFormation now supports blue/green deployments for Amazon ECS
#46I don’t think I’ve ever met someone that actually uses cloudformation unless a template was provided them to setup something like a lambda. Why would you when terraform exists?
Terraform doesn’t support rollbacks (handy for application roll-outs) and if your shop is heavily invested in AWS CF is a perfectly fine tool. I’ve maintained and started up tens of thousands of lines of both TF and CF and they both have their strengths and weaknesses.
Sorry I'm not familiar with Cloudformation but that's how I would approach it with Terraform.
Re: AWS CloudFormation now supports blue/green deployments for Amazon ECS
#47Earlier quoted context omitted.
We haven't had any problems, but our workload is mostly async background work. Our CI pushes master when it passes, running a simple script to push to ECR with a git SHA tag, update the task to use the latest image, and then update the service to the latest task definition. It takes 2 lines of bash to update the task definition, and 2 lines to run the AWS commands.
Really? At the last company we had like a 200 lines PowerShell script for all of that.
image: !subst “image:${Tag}”Re: AWS CloudFormation now supports blue/green deployments for Amazon ECS
#48I don’t think I’ve ever met someone that actually uses cloudformation unless a template was provided them to setup something like a lambda. Why would you when terraform exists?
Terraform doesn’t support rollbacks (handy for application roll-outs) and if your shop is heavily invested in AWS CF is a perfectly fine tool. I’ve maintained and started up tens of thousands of lines of both TF and CF and they both have their strengths and weaknesses.
I’m not sure I’d use either of these tools to roll out new code though.
Re: AWS CloudFormation now supports blue/green deployments for Amazon ECS
#49I don’t think I’ve ever met someone that actually uses cloudformation unless a template was provided them to setup something like a lambda. Why would you when terraform exists?
Terraform doesn’t support rollbacks (handy for application roll-outs) and if your shop is heavily invested in AWS CF is a perfectly fine tool. I’ve maintained and started up tens of thousands of lines of both TF and CF and they both have their strengths and weaknesses.
terraform is not the tool for the later, an ansible stack would be better suited for it
Re: AWS CloudFormation now supports blue/green deployments for Amazon ECS
#50I've never understood CloudFormation's lag time in supporting new service functionality. This launched nearly 3 years ago. https://aws.amazon.com/blogs/compute/bluegreen-deployments-w...
Somehow Terraform manages to roll out new features before they are even public while Amazon's own framework lags by years. I guess the CloudFormation team must be starved for resources.