title: VPC Peering in 2 different account via Terraform
body: <p>I try to set up a vpc peering connection between 2 VPC in Singapore region in 2 different AWS accounts. I followed the terraform document on &quot;vpc_peering_connection&quot; and &quot;vpc_peering_connection_accepter&quot; on the official website. So this is my code and failure:</p>
  <p><strong>Requester</strong></p>
  <pre><code>resource &quot;aws_vpc_peering_connection&quot; &quot;requester&quot; {
     provider = aws.anhvq
     vpc_id = module.vpc.vpc_id
     peer_owner_id = &quot;aws account id of accepter&quot;
     # peer_region = &quot;ap-southeast-1&quot;
     peer_vpc_id = &quot;vpc id of accepter&quot;
     auto_accept = false
  
     tags = local.tags
     accepter {
     allow_remote_vpc_dns_resolution = true
   }
     requester {
     allow_remote_vpc_dns_resolution = true
   }
  }
  </code></pre>
  <p>When I run <code>terraform plan</code> nothing fails. when run <code>terraform apply</code>, I receive this failure:</p>
  <pre><code>│ Error: Unable to modify peering options. The VPC Peering Connection &quot;pcx-0e625f0fd4ef93696&quot; is not active. 
  Please set `auto_accept` attribute to `true`, or activate VPC Peering Connection manually. 
  │
  │   with aws_vpc_peering_connection.requester,
  │   on vpc.tf line 49, in resource &quot;aws_vpc_peering_connection&quot; &quot;requester&quot;:
  │   49: resource &quot;aws_vpc_peering_connection&quot; &quot;requester&quot; {
  │
  ╵
  </code></pre>
  <p>But the VPC Peering connection is still created and I got the VPC Peering ID</p>
  <p><strong>Accepter</strong></p>
  <pre><code>resource &quot;aws_vpc_peering_connection_accepter&quot; &quot;accepter&quot; {
      provider = aws.lamnx
      vpc_peering_connection_id = &quot;pcx-0e625f0fd4ef93696&quot;
      auto_accept = true
      accepter {
      allow_remote_vpc_dns_resolution = true
    }
  </code></pre>
  <p>Result: <code>terraform plan</code> and <code>terraform apply</code> is done.</p>
  <ul>
  <li>The status of VPC peering in both Accounts is active. But when I run <code>terraform apply</code> again in <strong>Requester</strong>, the VPC peering was destroyed and replaced.</li>
  </ul>