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개 답변
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
답변함 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠