I have t2.micro EC2 instance running on AWS. To handle spikes in traffic I have created auto scale group which dynamically increases and decreases EC2 instances from an AMI. Everything is fine till here. The problem is my user login database is in same EC2 instance. When new EC2 instance is spawned it does not contain newly added user in primary EC2 instance. And if new user creates account in new instance, it is lost on the instance termination. Is there a way to have single EBS volume for all the instances?
Please point me towards some useful resources on building scalable web apps on AWS.