Hello All. Please, I need assistance on this task.
I have two AWS accounts, for production and dev environments. I have a domain (
example.com) in Route53 of the production account. However, I want to create a new stack and deploy to the dev environment. If the stack name is testing, it should create a record in the production environment as
testing.example.com, and then create a hosted zone in the dev account.
In other words, the parent domain is inside the Production account (
example.com). And under that domain, a subdomain, a subdomain was created (
dev.example.com), where
dev is the stack name. That subdomain (
dev.example.com) has now be used as a hosted zone in the Dev account.
Now what I want to achieve is the use of ephemeral environments. So now, when I create a name stack, say
testing, it should have that record registered on the production account as (
testing.example.com), and a hosted zone on the Dev account.