I am looking into using multiple AWS accounts for my organization, the accounts are as follows:
- billing (centralized for all accounts)
- security (central account for AWS IAM roles/credentials)
- app1-prod (prod environment)
- app1-non-prod (staging/test environment)
and then any additional apps (the idea is that these can scale out)
- app2-prod (prod environment)
- app2-non-prod (staging/test environment)
I am trying to follow the suggestion from this AWS re:Invent talk.
My question is as follows, how do I configure Route 53 to route traffic for prod requests (www.prod.app1.my-company.com
) to the app1-prod account and its load balancers and traffic for the staging/test environment (www.test.app1.my-company.com
)?
Or should each account owns its own DNS record in Route53?
For example instead of www.prod.app1.my-company.com
and www.test.app1.my-company.com
use: www.app1.com
and www.app1-test-account-my-company.com
I am aware of route53 resolver but that seems geared towards hybrid clouds (on-prem and cloud VPC's).
Thanks in advance.
Note: The URLs above are not mandatory.