I'm using AWS and have a VPC which is connected to the local network via a VPN. I can launch EC2 instances, put them in various subnets in various AZ's and connect to them via internal IP.
I can also join them to the local domain.
However, I want to be able to automatically put them into specific groups within the AD domain, based on their IP address, when they join the domain.
Therefore, when I create a new instance of my image it will be joined to the domain and because it has a particular IP address, will be added to a certain group.