amazon ec2 - EC2: Security group firewall rules across multiple regions with AutoScaling -


for geographic redundancy , performance reasons going setting number of ec2 servers across multiple regions scale , down on demand using amazon's autoscaling. have unique requirement in every server across regions needs able communicate each other. whilst it's pretty trivial set firewall allow in single region, not obvious how 1 achieves across regions referencing security groups in firewall other regions not supported.

does know best way ensure of our servers have access each other on particular port? remember, servers added , removed amazon's autoscaling entering ip addresses manually going become outdated quite quickly. hoping there way of achieving through configuration opposed having make api calls every time server added or removed autoscaling.

i don't believe possible. can try use security group id instead of name i'm not sure work cross region. tried out , couldn't work. rule created fine there's no guarantee security group added account since can in fact add security groups across accounts. possible vpn connection if have 1 since vpn gives more control on firewall rules, i've never tried it.

all of being said. think should revisit requirements of application. don't know why need connect between 2 regions, understand goal achieving geographical redundancy. however, requiring 2 environments connect each other throws red flag me when considering fault tolerance. if you're environments connected in way run risk of complete failure if 1 environment fails. purpose other latency or fault tolerance launching instances in 2 regions provide? point being if servers need rule in security group environments connected , gain no benefit having 2 geographical locations.

each of ec2 regions isolated provide promote strong architectural design decisions. want isolate issues single region, should striving well.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -