in custom-resource/peering_dns_conf/peering.py [0:0]
def create(event, context):
logger.info("Got Create")
properties = event.get("ResourceProperties", None)
vpc_peering_connection_id = properties.get("VpcPeeringConnectionId")
client.modify_vpc_peering_connection_options(
AccepterPeeringConnectionOptions={"AllowDnsResolutionFromRemoteVpc": True},
RequesterPeeringConnectionOptions={"AllowDnsResolutionFromRemoteVpc": True},
VpcPeeringConnectionId=vpc_peering_connection_id,
)
return helper.PhysicalResourceId