News for hackers. Stuff that matters.
Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by cagataygurturk on Friday August 05, 2016 @04:06PM (#12235381)
Why do you think Cloudformation sucks?
Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by dack on Friday August 05, 2016 @04:09PM (#12235407)
Not the parent, but for one, doing a CF update is all-or-nothing. Either you roll the whole thing out, or you roll the whole thing back. If you have a lot of servers, and things are going down, you want to just STOP. But you can't. Also, if you click too quickly, sometimes you can get into a weird state and not be able to rollback OR update anymore.
Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by jonaf on Friday August 05, 2016 @08:50PM (#12236557)
I think this behavior is sensible. Additionally, you can disable rollback. However, cloud formation has needed and lacked a "dry run" option for a long time. It would be really nice to have that. However, the documentation does indicate what effect an update on any given resource will have.

I recommend against making sweeping changes to your infrastructure without thoroughness. Without saying this is what you're doing, I see a lot of developers who get involved with cloud treating changes whimsically. I'm not saying you should write perfect code. But thoroughness and a solid procedure (and backup plan) is a good place to start.

Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by jdub on Saturday August 06, 2016 @04:40AM (#12237531)
dry run for cfn == create change set :-)

(also, it helps to use nested stacks)

Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by toomuchtodo on Friday August 05, 2016 @04:11PM (#12235421)
Same thing happens with other tools like Terraform though: once you've kicked off an apply, you are committed.
Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by adamveld12 on Friday August 05, 2016 @06:25PM (#12236115)
yeah, but having the option to run 'terraform plan' really helps you know what you're getting yourself into.
Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by toomuchtodo on Friday August 05, 2016 @06:31PM (#12236142)
We've had Terraform take action that wasn't in the plan, in production.

I call it "pray and apply".

https://news.ycombinator.com/item?id=12214879

Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by jacques_chester on Saturday August 06, 2016 @09:39AM (#12238079)
BOSH is able to cancel operations. You press Ctrl+C and it asks if that's what you intend.
Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by cheeseprocedure on Friday August 05, 2016 @04:20PM (#12235475)
CloudFormation change sets make CF updates a little less painful/mysterious:

https://aws.amazon.com/blogs/aws/new-change-sets-for-aws-clo...

Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by kureikain on Friday August 05, 2016 @04:57PM (#12235708)
changeset is very limited. when you have sub stack, change set cannot detect thing change in sub stack :(
Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by KirinDave on Friday August 05, 2016 @04:08PM (#12235404)
Because massive json files with pseudo-invocation syntax and a ton of gaping issues that aren't readily solved by pre-existing template solutions pauses for breath and just bizarre decisions about holding and fielding and really poor integration with new services (you can tie ECS clusters in a knot with CF trivially) and API call limit hits KOing CF provisioning jobs and...

I mean, what it's doing is hard and I use it over, say, Chef... but it's not a "good" product. Heck, you cannot even truly validate CF templates without running them. The CLI and builder just do a crude structural check pass. Got a case error in a nested structure? Too bad, the entire job is rolling back.

Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by scrollaway on Friday August 05, 2016 @04:12PM (#12235430)
While we're on the subject, I want to mention terraform (https://www.terraform.io/).

I'm not going to straight up recommend using it, but I will recommend checking it out. It's certainly a lot better than CF, but it still has really glaring issues and very much feels like alpha software (see discussion here: https://news.ycombinator.com/item?id=12213935 and some of my complaints here: https://news.ycombinator.com/item?id=12214358).

Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by yeukhon on Friday August 05, 2016 @05:30PM (#12235870)
I am on the opposite fence. I also comment on the recent Terraform discussion. Basically the abstraction layer is too complex; why not template JSON and build the cloudformation stack? In the end, nested CF stack is still, a hard problem.
Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by scrollaway on Friday August 05, 2016 @05:47PM (#12235938)
Why do you think the abstraction layer is too complex? I found terraform was essentially designed with AWS as a first-class citizen (if not for AWS in the first place), which means everything maps really well.

I strongly dislike HCL, but that's essentially what it is - templated JSON.

Re:Why We Moved from Amazon Web Services to Google Cloud Pla... by abrookewood on Saturday August 06, 2016 @12:38AM (#12237034)
There are a few issues: stacks sometimes partially complete and you are left with a bit of a mess; stack creation has insanely long timeouts and a lot of retries, so it often sits there for 15 minutes before eventually failing; and deletions can fail part way through because there is some dependency that isn't obvious (and which they don't make it easy to find). I still like it (infrastructure as code is cool), but it needs more work.