I have a backend app deployed to Elastic Beanstalk that is running in a EC2 instance. And I have a custom domain with Google Domains, what are the DNS records I need to add to allow deploy to the custom domain? And is there additional settings I need to configure on AWS?
Let's say my base url is test.com.
I have added the DNS record of
- test.com type A to point to the IPv4 address of my EC2 instance
- api.test.com type CNAME to the elasticbeanstalk.com url provided by AWS
But when I try to access to api.test.com it says it's unreachable.
What is the correct way if I want to have my backend running api.test.com?