{"id":5630,"date":"2025-08-26T17:19:07","date_gmt":"2025-08-26T08:19:07","guid":{"rendered":"https:\/\/saraheee.com\/?p=5630"},"modified":"2025-08-28T21:22:02","modified_gmt":"2025-08-28T12:22:02","slug":"repost-how-do-i-share-a-route-53-profiles-with-a-vpc-in-a-different-account","status":"publish","type":"post","link":"https:\/\/saraheee.com\/ko\/2025\/08\/repost-how-do-i-share-a-route-53-profiles-with-a-vpc-in-a-different-account\/","title":{"rendered":"re:Post &#8211; How do I share a Route 53 profile with a VPC in a different account?"},"content":{"rendered":"<p>4 minute read | Content level: Intermediate<\/p>\n\n\n\n<p>AWS re:Post &#8211; <a href=\"https:\/\/repost.aws\/articles\/AR88XlK4WXTsWgYiEMW8UGjA\" rel=\"noopener\">How do I share a Route 53 profile with a VPC in a different account?<\/a><\/p>\n\n\n\n<p>I want to associate my Amazon Route 53 profiles with an Amazon Virtual Private Cloud (Amazon VPC) that belongs to a different AWS account.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Short description<\/h2>\n\n\n\n<p>To associate Route 53 profiles from Account A with an Amazon VPC in Account B, share the resources from the account that owns the profiles. Then, accept the invitation from the AWS account with which you want to share.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Resolution<\/h2>\n\n\n\n<p><strong>Note<\/strong>: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/cli-chap-troubleshooting.html\" rel=\"noopener\">Troubleshooting errors for the AWS CLI<\/a>. Also, make sure that <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/getting-started-install.html\" rel=\"noopener\">you&#8217;re using the most recent AWS CLI version<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access to both the accounts.<\/li>\n\n\n\n<li>Route 53 profiles is a service that manages DNS settings for multiple VPCs. When you update a profile, those settings propagate to all VPCs associated with the profile.<\/li>\n\n\n\n<li>Route 53 profiles is a regional service. You can only share and associate VPCs in the same region where you create the rules.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Route 53 profiles owner account (Account A)<\/h3>\n\n\n\n<p>Before you begin, consider the following:<br>Resource managed by profiles include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Private hosted zones<\/li>\n\n\n\n<li>Route 53 Resolver rules<\/li>\n\n\n\n<li>DNS firewall rule groups<\/li>\n<\/ul>\n\n\n\n<p>VPC configurations manged by profiles include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reserve DNS lookup configuration for Resolver rules<\/li>\n\n\n\n<li>DNS firewall failure mode configuration<\/li>\n\n\n\n<li>DNSSEC validation configuration<\/li>\n<\/ul>\n\n\n\n<p>Complete the following steps:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Create the Route 53 profiles (if you don&#8217;t have one already)<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Run the <a href=\"https:\/\/docs.aws.amazon.com\/connect\/latest\/APIReference\/API_connect-customer-profiles_CreateProfile.html\" rel=\"noopener\">create-profile<\/a> command in AWS CLI to create the profile:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>aws route53profiles create-profile --name &#91;name]<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: Replace <strong>name<\/strong> with your profile name.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Run the <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/configure\/list-profiles.html\" rel=\"noopener\">list-profiles<\/a> command to verify the created profile:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>aws route53profiles list-profiles<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: From the command&#8217;s output, note the profile ARN (Arn) that you want to associate.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Share the Route 53 profiles with AWS RAM<\/h4>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Share the created profile with another AWS account by running the <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/ram\/create-resource-share.html\" rel=\"noopener\">create-resource-share<\/a> command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>aws ram create-resource-share --name &#91;name] --resource-arns arn:aws:route53profiles:&#91;region]:&#91;account-a-id]:profile\/&#91;rp-profile-id] --principals &#91;account-b-id]<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: Replace <strong>name<\/strong> with your specified profile name, <strong>resource-arns<\/strong> with the ARN output from step 2, and <strong>principals<\/strong> with the account ID (Account B) you want to share with.<\/p>\n\n\n\n<p>In the console, the <strong>Share status<\/strong> of the shared profile changes from &#8220;Not shared&#8221; to &#8220;Shared by me&#8221;.<\/p>\n\n\n\n<p><strong>Note<\/strong>: When creating a resource share limited to member AWS organization accounts, add <strong>&#8211;no-allow-external-principals<\/strong> to the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aws ram create-resource-share --name &#91;name] --resource-arns arn:aws:route53profiles:&#91;region]:&#91;account-a-id]:profile\/&#91;rp-profile-id] --principals &#91;account-b-id] --no-allow-external-principals<\/code><\/pre>\n\n\n\n<p>When sharing resources within an organization, principals in the organization can access shared resources without exchanging invitations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Route 53 profiles shared account (Account B)<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Accept the resource share invitation<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Run the <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/ram\/get-resource-share-invitations.html\" rel=\"noopener\">get-resource-share-invitations<\/a> command to check the invitation information:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>aws ram get-resource-share-invitations<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: From the command&#8217;s output, note the invitation ARN (resourceShareInvitationArn).<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Run the <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/ram\/accept-resource-share-invitation.html\" rel=\"noopener\">accept-resource-share-invitation<\/a> command to accept the invitation:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>aws ram accept-resource-share-invitation --resource-share-invitation-arn arn:aws:ram:&#91;region]:&#91;account-a-id]:resource-share\/&#91;resource-share-invitation-id]<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: Replace <strong>resource-share-invitation-arn<\/strong> with the ARN from step 1 output.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Associate Route 53 profile with VPC<\/h4>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Run the <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/configure\/list-profiles.html\" rel=\"noopener\">list-profiles<\/a> command to verify the profile to associate:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>aws route53profiles list-profiles<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: From the command&#8217;s output, note the profile ID (Id).<\/p>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Run the <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/route53profiles\/associate-profile.html\" rel=\"noopener\">associate-profile<\/a> command to associate the VPC with the profile:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>aws route53profiles associate-profile --name &#91;name] --profile-id &#91;rp-profile-id] --resource-id &#91;vpc-id]<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: Replace <strong>name<\/strong> with your specified profile name, <strong>profile-id<\/strong> with the Id from step 3 output, and <strong>resource-id<\/strong> with the VPC ID you want to associate.<\/p>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Run the <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/route53profiles\/list-profile-associations.html\" rel=\"noopener\">list-profile-associations<\/a> command to check the association status:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>aws route53profiles list-profile-associations --profile-id &#91;rp-profile-id]<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: Replace <strong>profile-id<\/strong> with the Id from step 3 output and verify the associated VPC in ResourceId.<\/p>\n\n\n\n<p>Now DNS queries from this VPC will follow the Route 53 profile rules.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related information<\/h2>\n\n\n\n<p>[1] Documentation &gt; AWS Route 53 &gt; <a href=\"https:\/\/docs.aws.amazon.com\/Route53\/latest\/DeveloperGuide\/sharing-profiles.html\" rel=\"noopener\">Working with shared Route 53 Profiles<\/a><br>[2] Documentation &gt; AWS Command Line Interface &gt; <a href=\"https:\/\/docs.aws.amazon.com\/cli\/v1\/userguide\/cli_ram_code_examples.html\" rel=\"noopener\">AWS RAM examples using AWS CLI<\/a><br>[3] Documentation &gt; AWS RAM &gt; <a href=\"https:\/\/docs.aws.amazon.com\/ram\/latest\/userguide\/getting-started-sharing.html\" rel=\"noopener\">Sharing your AWS resources<\/a><\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>I want to associate my Amazon Route 53 profiles with an Amazon Virtual Private Cloud (Amazon VPC) that belongs to a different AWS account.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[186],"tags":[187,233,234],"class_list":["post-5630","post","type-post","status-publish","format-standard","hentry","category-aws","tag-aws","tag-route-53","tag-vpc"],"_links":{"self":[{"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/posts\/5630"}],"collection":[{"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/comments?post=5630"}],"version-history":[{"count":7,"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/posts\/5630\/revisions"}],"predecessor-version":[{"id":5640,"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/posts\/5630\/revisions\/5640"}],"wp:attachment":[{"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/media?parent=5630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/categories?post=5630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saraheee.com\/ko\/wp-json\/wp\/v2\/tags?post=5630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}