I have created an AMI from a current Linux EC2 instance. There is an EBS attached to the original EC2. When the AMI was created, how does that treat the EBS? I am worried about losing data.
I am attempting to implement Blue/Green deployment for our dev/test/prod environments. We have a current & stable Linux-EC2 instance in test that hosts our application. I created an AMI from that instance so that I could create a second EC2. This would save time and prevent having to reconfigure everything. Everything seemed to work fine.
I now have to do this for our prod environment. I was made aware that there is an EBS instance attached to the current EC2 instance, just as in test. We are worried that when we make an AMI of the prod EC2, there might be some sort of disconnect between the AMI and the EBS.
I have some decent knowledge in AWS service, but I am far from being an pro. I would like to ask any AWS experts out there... do I have anything to worry about? How does creating an AMI instance of a current EC2 affect the attached components/services such as an EBS?
Again, the main worry is about losing data. We don't want our end users in prod to lose data by us assuming that our EBS will transition smoothly to the newly cloned AMI and any EC2 we create from that AMI.
Thanks in advance!