Cross-Account Route 53 and ACM using CDK

0

I am developing a web application within my AWS organization. I have one account to manage domains with Route 53, one for development, and a third for production. I use CDK to deploy my app's AWS resources and code. I need help creating and validating an ACM certificate with DNS records on a Route 53 hosted zone in another account. CDK doesn't allow me to pass values from one stack in account A to another in account B. I've been thinking of developing a lambda function with the AWS SDK to do cross-account configurations and then importing the created resources to my stacks, but I wondered if there is a way to accomplish this with CDK.

1 Answer
0

Hi, thanks for posting your question on re:Post!

You can achieve this with a cross account role and a custom resource that will make the changes in the Hosted Zone on your behalf on stack deploy. Please see the cdk-cross-account-route-53 on Construct Hub that does exactly this. Alternatively you can recreate a similar setup in your CDK project.

AWS
Piotrek
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions