title: Terraform. Create a user in a secondary instance of Oracle Identity Cloud Service (IDCS)
body: <p>I am using Terraform to create several technical users for my applicationl, like this one:</p>
  <pre><code>resource &quot;oci_identity_user&quot; &quot;scheduler_user&quot; {
      compartment_id = var.tenancy_ocid
      name = &quot;scheduler&quot;
      description = &quot;This user is used by the cron process.&quot;
  }
  </code></pre>
  <p>It creates a user inside the primary user database of my OCI tenancy.</p>
  <p>Oracle Cloud supports multiple user databases using one or more <strong>secondary</strong> instances of Identity Cloud Service. It is useful, if you want to separate users of a custom application.</p>
  <p><a href="https://docs.oracle.com/en/cloud/paas/identity-cloud/uaids/multiple-instances.html" rel="nofollow noreferrer">https://docs.oracle.com/en/cloud/paas/identity-cloud/uaids/multiple-instances.html</a></p>
  <p>The problem is that I have no idea, how to address this secondary IDCS instance from my Terraform script.</p>