title: Terraform Exception Handling with Route53 Resource
body: <p>I've got a problem working with aws resources via terraform. In my case, Route53 returns an error shown as below</p>
  
  <pre><code>data "aws_route53_zone" "zone" {
    name         = "example.com."
    private_zone = false
  }
  </code></pre>
  
  <p>After these data source giving an error, shown as below</p>
  
  <blockquote>
    <p>no matching Route53Zone found </p>
  </blockquote>
  
  <p>I want to handle these exception an if a record not found in route53 create a record in Route53. To summarize I want to handle exceptions as conditionals.</p>