Reputation: 1
I created the AWS auto scaling group, in that multiple ec2 instances are running, how to set that only specific/particular ec2 instance to access/connect RDS? I am new to the AWS so can anyone please answer to my question?
Upvotes: 0
Views: 244
Reputation: 291
Your case is unreasonable. But I will suggest my own way (tip) in this case. Suppose you have 3 instances running all the time, and can scale up to 10 instances.
In this case the first scaled instance will never be terminated unless it crashes. And you will again attach the allowed SG to another instance. Newer scaled instances will be deleted first.
But I think, if only 1 instance is allowed in RDS, leave it out of the autoscaling group, because it doesn't belong to the group.
Upvotes: 0