<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.ciscolinux.co.uk/index.php?action=history&amp;feed=atom&amp;title=AWS%2FRoute53_private_zone_assosiate_with_other_account</id>
	<title>AWS/Route53 private zone assosiate with other account - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ciscolinux.co.uk/index.php?action=history&amp;feed=atom&amp;title=AWS%2FRoute53_private_zone_assosiate_with_other_account"/>
	<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=AWS/Route53_private_zone_assosiate_with_other_account&amp;action=history"/>
	<updated>2026-04-05T08:26:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>http://wiki.ciscolinux.co.uk/index.php?title=AWS/Route53_private_zone_assosiate_with_other_account&amp;diff=5838&amp;oldid=prev</id>
		<title>Pio2pio: Created page with &quot;If you try to resolve private hosted zone records in a VPC that does not belong to the same account you need to create authorization to make this work. &lt;source lang=bash&gt; # In...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=AWS/Route53_private_zone_assosiate_with_other_account&amp;diff=5838&amp;oldid=prev"/>
		<updated>2020-09-13T14:16:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;If you try to resolve private hosted zone records in a VPC that does not belong to the same account you need to create authorization to make this work. &amp;lt;source lang=bash&amp;gt; # In...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you try to resolve private hosted zone records in a VPC that does not belong to the same account you need to create authorization to make this work.&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# In account 'A', this is where the private zone is hosted&lt;br /&gt;
aws route53 list-hosted-zones&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;Id&amp;quot;: &amp;quot;/hostedzone/Z01111111RWDJEEXAMPLE&amp;quot;,&lt;br /&gt;
      &amp;quot;Name&amp;quot;: &amp;quot;acme.private.&amp;quot;,&lt;br /&gt;
      &amp;quot;CallerReference&amp;quot;: &amp;quot;PrivateDN-HostedZo-S11QC11ELX11&amp;quot;,&lt;br /&gt;
      &amp;quot;Config&amp;quot;: {&lt;br /&gt;
        &amp;quot;Comment&amp;quot;: &amp;quot;acme.private - private DNS zone not accessible from the internet&amp;quot;,&lt;br /&gt;
        &amp;quot;PrivateZone&amp;quot;: true&lt;br /&gt;
      },&lt;br /&gt;
&lt;br /&gt;
VPCID_ACCOUNT_B=vpc-11111111&lt;br /&gt;
aws route53 create-vpc-association-authorization --hosted-zone-id &amp;lt;hosted-zone-id&amp;gt;      --vpc VPCRegion=&amp;lt;region&amp;gt;,VPCId=&amp;lt;vpc-id&amp;gt;&lt;br /&gt;
aws route53 create-vpc-association-authorization --hosted-zone-id Z01111111RWDJEEXAMPLE --vpc VPCRegion=eu-west-1,VPCId=vpc-11111111&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;HostedZoneId&amp;quot;: &amp;quot;Z01111111RWDJEEXAMPLE&amp;quot;,&lt;br /&gt;
    &amp;quot;VPC&amp;quot;: {&lt;br /&gt;
        &amp;quot;VPCRegion&amp;quot;: &amp;quot;eu-west-1&amp;quot;,&lt;br /&gt;
        &amp;quot;VPCId&amp;quot;: &amp;quot;vpc-11111111&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# In account 'B', where is your VPC that ec2 instances you wish to resolve the dns name/zone&lt;br /&gt;
aws route53 associate-vpc-with-hosted-zone --hosted-zone-id &amp;lt;hosted-zone-id&amp;gt;      --vpc VPCRegion=&amp;lt;region&amp;gt;,VPCId=&amp;lt;vpc-id&amp;gt;&lt;br /&gt;
aws route53 associate-vpc-with-hosted-zone --hosted-zone-id Z01111111RWDJEEXAMPLE --vpc VPCRegion=eu-west-1,VPCId=vpc-11111111&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;ChangeInfo&amp;quot;: {&lt;br /&gt;
        &amp;quot;Id&amp;quot;: &amp;quot;/change/C011111111XJESOAZRMKM&amp;quot;,&lt;br /&gt;
        &amp;quot;Status&amp;quot;: &amp;quot;PENDING&amp;quot;,&lt;br /&gt;
        &amp;quot;SubmittedAt&amp;quot;: &amp;quot;2020-09-11T13:59:34.280Z&amp;quot;,&lt;br /&gt;
        &amp;quot;Comment&amp;quot;: &amp;quot;&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# In account 'A', delete association authorization. Optional good practice.&lt;br /&gt;
$ aws route53 list-vpc-association-authorizations --hosted-zone-id Z01111111RWDJEEXAMPLE --output text&lt;br /&gt;
Z01111111RWDJEEXAMPLE&lt;br /&gt;
VPCS	vpc-11111111	eu-west-1&lt;br /&gt;
&lt;br /&gt;
aws route53 delete-vpc-association-authorization --hosted-zone-id Z01111111RWDJEEXAMPLE --vpc VPCRegion=eu-west-1,VPCId=vpc-11111111&lt;br /&gt;
# -&amp;gt; no-output&lt;br /&gt;
```&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
= References =&lt;br /&gt;
*[https://aws.amazon.com/premiumsupport/knowledge-center/private-hosted-zone-different-account/ How do I associate a Route 53 private hosted zone with a VPC on a different AWS account?] AWS Blog&lt;/div&gt;</summary>
		<author><name>Pio2pio</name></author>
	</entry>
</feed>