I am using DHCP to assign primary IP addresses in a subnet within a Windows Amazon Web Services EC2 instance
To avoid issues where the boxes are rebooted and the DHCP address changes, I have assigned a secondary IP to the network adapter within the same VPC subnet which is static and I reference those in my app configuration files.
Although this has worked for months, this seems a little "hardcoded". I'm fairly new to AWS, and I'm sure there's a thousand and one ways to skin a cat, but is this considered 'best practice'?