I'm having real difficulty in getting the environments setup on 2 AWS accounts which are related to each other by the virtue of Organisation Hierarchy. My root DNS provider is GoDaddy which is hosting DNS record for example.com
. We have multiple services which needs to be hosted on subdomain services.example.com
. My setup is like:
- GoDaddy -> Root DNS provider for
example.com
. Has NS record entries forservices.example.com
pointing to AWS Prod Account's Hosted Zone - AWS Prod Account -> Has Hosted Zone as
services.example.com
. Within this hosted zone I have A Records for production servicesservice1.services.example.com
,service2.services.example.com
, etc. - AWS Dev Account -> Need a way to host environments such as test, uat, release on Prod account subodmain as:
Service 1:
test.service1.services.example.com
uat.service1.services.example.com
release.service1.services.example.com
Service 2:
test.service2.services.example.com
uat.service2.services.example.com
release.service2.services.example.com
Is there any way that I can achieve this. I have attached an image for visually simplifying this setup.
services.example-dev.com
or a subdomain asservice1.nonprod.services.example.com
:-) – kk.