title: How do I set the AWS peering connection DNS resolution options through CloudFormation?
body: <p>I have two VPCs:</p>
  
  <ul>
  <li>VPC1 which holds our RDS instance.</li>
  <li>VPC2 which holds our cluster of EC2 instances.</li>
  </ul>
  
  <p>We have successfully setup a VPC peering connection, routes and security groups to allow appropriate communication.</p>
  
  <p>In order to resolve the RDS instance AZ-appropriate local IP address from it's hostname, we need to follow <a href="http://docs.aws.amazon.com/AmazonVPC/latest/PeeringGuide/modify-peering-connections.html" rel="noreferrer">these instructions</a> and set <code>--requester-peering-connection-options AllowDnsResolutionFromRemoteVpc=true</code>.</p>
  
  <p>If I do this manually through the AWS Console or the AWS CLI it all works fine, however I'm creating the cluster of EC2 instances through CloudFormation and the option is missing from the <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html" rel="noreferrer">CloudFormation documentation</a>.</p>
  
  <p>The effect of this is that my stack starts up and fails because the services themselves cannot connect to the database.</p>
  
  <p>Am I doing something obvious wrong, or is this just Amazon being incomplete?</p>
  
  <p>Thanks!</p>