# typescript


05/25/2023, 11:54 AM
Hello Team, Good morning. I am having a bit of challenge executing this task. I would appreciate any help. I have two AWS accounts, for production and dev environments. I have a domain ( 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, and then create a hosted zone in the dev account. I am using TypeScript.


05/25/2023, 12:17 PM
Which part are you struggling with?


05/25/2023, 2:39 PM
The logic, please.
I am new to Pulumi so I am trying to figure out how I can achieve this.


05/25/2023, 2:44 PM
I would recommend to create a hosted zone in your dev account like You configure as a NS entry in production account to delegate the sub domain to your dev aws account. Your pulumi code in dev will then create only an entry like in an hosted zone in the same AWS account.


05/25/2023, 2:46 PM
Thank you very much, @dazzling-belgium-15679 for the input. I will try that right away and give you a feedback.
A break down of the task. The parent domain is inside the Production account ( And under that domain, a subdomain, a subdomain was created (, where dev is the stack name. 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 (