1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
Isn't it possible that you're trying to access old EC2 due to the domain's TTL value or something?
For example, can you use the following command to resolve the domain name and check the new EC2 IP address?
If you can confirm the IP address of the old EC2, you should be able to access the new EC2 by waiting a while and accessing it.
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/best-practices-dns.html
dig www.my-custom-domain.com
By the way, for ElasticBeanstalk domain settings, I think there is no need to set the EC2 IP address by registering the environment domain with a CNAME record instead of an A record.
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-beanstalk-environment.html
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
I don't have the old instance anymore as I terminated it.
Anyway, just to see if it should work again, I created a new instance with the same domain name as the old one and reassigned it to the custom domain in Route 53 and after 10 minutes or so it appears to be working again.
I think the old IP address was probably cached due to a domain TTL issue. When changing domain record settings, I think it's a good idea to lower the TTL value before changing.