I've mounted an EBS Volume onto my Elastic Beanstalk EC2 to use it as a permanent database. I am aware that Elastic Beanstalk keeps rolling itself to a new environment every now and then, but the problem is that sometimes it changes region, (e.g. from eu-west-3a to eu-west-3c) causing my EBS volume to detach!
How can I keep my EC2 instance from abruptly changing region by itself? or, limit its spawning to a single region? It's an annoyance to migrate my EBS Volume using snapshots every time this happens.
How can I re-attach my EBS Volume to my EC2 instance automatically? Is .ebextensions the answer? I really can't seem to figure that one out... :(
Thank you in advance!