1 Answer
0
Rather than utilizing the IP addresses mapped to instances in the hosts file you could instead create DNS records for the instances and refer to them for the application if possible. You can create a private Route53 zone in a VPC, add A records pointing to the instances via CloudFormation.
If it absolutely isn't possible via DNS records then you could do it via storing the hostname & IP in parameter store and then fetching it sometime after instance creation to add the host file entries.
answered 2 months ago
Relevant questions
- asked 5 months ago
- asked 7 months ago
- asked 10 months ago
- Accepted Answerasked 9 months ago
- Accepted Answerasked 6 months ago
- asked 3 years ago
- asked 5 months ago
- asked 5 months ago