After this, I built a script that did a backup once a day and made sure I had to go through some extra hoops to connect to the production database from my own dev machine.
All in all, this was a good learning experience.
After this, I built a script that did a backup once a day and made sure I had to go through some extra hoops to connect to the production database from my own dev machine.
All in all, this was a good learning experience.
Though I had an AMI created few months back and it took around 15 mins to get latest code working but yeah I learnt my lesson.
But again I think this is a bad ux from AWS where you can directly terminate any instance without any prompt or warning. I hope they change it some day!
All of this is predicated on the idea that you know exactly what changes you need to make, exactly what state the database should be in afterwards, exactly how to verify this, and also how to check for unintended side-effects.
I suppose the real trick is to avoid having to do this kind of thing in the first place but, as well all know, sometimes that's just not possible.
(12'503'450 rows affected)
Oh crap.