I have some EC2 instances setup with auto scaling. It scaling up and down according to resource usage. These servers accessing some other Ec2 instance and rds instance. It connect using public ip (not using internal/private IP).
Each time new servers created, I have to update other server security group with new ip and logically its impossible, otherwise I have to configure security group to accept traffic from any IP.
How do I automatically white list new IPs on security group and delete those IPs when removing servers ?
Is it possible to attach set of elastic IPs to auto scaling group?
Thank you!