title: Cannot authenticate with Cloudflare via terraform provider
body: <p>I'm trying to follow terraform documentation, but for some reason I'm getting error while trying to authenticate with my Cloudlfare account from within terraform (with terragrunt).</p>
  <p>So my config is:</p>
  <pre><code>locals {
    cloudflare_api_token = get_env(&quot;CLOUDFLARE_API_TOKEN&quot;)
    cloudflare_email = get_env(&quot;CLOUDFLARE_EMAIL&quot;)
  }
  
  terraform {
    source = &quot;my source dir&quot;
  }
  
  generate &quot;versions&quot; {
    path      = &quot;versions.tf&quot;
    if_exists = &quot;overwrite_terragrunt&quot;
    contents  = &lt;&lt;EOF
      terraform {
        required_providers {
          cloudflare = {
            source = &quot;cloudflare/cloudflare&quot;
            version = &quot;~&gt; 3.0&quot;
          }
        }
      }
  EOF
  }
  
  generate &quot;provider&quot; {
    path = &quot;provider.tf&quot;
    if_exists = &quot;overwrite_terragrunt&quot;
    contents = &lt;&lt;EOF
      provider &quot;cloudflare&quot; {
         email = &quot;${local.cloudflare_email}&quot;
         api_token = &quot;${local.cloudflare_api_token}&quot;
      }
  EOF
  }
  </code></pre>
  <p>Now, the error is:</p>
  <pre><code>&quot;email&quot;: all of `api_key,email` must be specified
  </code></pre>
  <p>I'm a bit confused as I think I actually don't need to use <code>api_key</code> if I'm using <code>api_token</code>. Also <code>api_key</code> seems to be deprecated.
  Btw, terraform configs are created correctly (from terragrunt configs).
  How can I authenticate?</p>