Deploy the Terraform authentication template in OCI
Learn how to deploy the Terraform authentication template in Oracle Cloud Infrastructure.
When you have downloaded the Terraform template file in the onboarding wizard, you must connect to Oracle Cloud Infrastructure (OCI) CLI tool to deploy the template file. For more information about the OCI CLI tool, refer Oracle documentation. to create a stack using the template file.
Prerequisite
Log in to OCI and open Cloud Shell.
Create a directory on your local machine to store and run the Terraform code. If you have more than one OCI connector, you need a separate directory for each one. For example:
mkdir -p ~/terraform/oci-connector-1Navigate to the directory you created and extract the Terraform files. Ensure all necessary Terraform files are present (
main.tf,template_params.tfvars, and so on). For example:cd ~/terraform/oci-connector-1 tar -xzvf <your_template>.tar.gz.Initialize Terraform in your project directory:
terraform initIt might take several seconds until the initialization is complete.
Apply your Terraform configuration using the downloaded parameter file. When prompted to enter a value, enter the tenancy OCID.
terraform apply --var-file=template_params.tfvarsWhen prompted, review the actions the Terraform will perform, and approve them by entering
yes.The Terraform template is deployed.
Since non-default domains are bound to a specific home region, you must manually enable replication to interact with domain resources across different geographical regions. To enable replication:
Open the Oracle Cloud Console and log in.
Open the main navigation menu and select Identity & Security → Identity → Domains.
Select the name of the Identity Domain created by the Terraform script you downloaded from Cortex Cloud.
On the domain details page, go to the region section and click the Actions menu (three dots) for the target region you need to collect resources from.
Select Enable replication and confirm.
Replication may take up to 60 minutes depending on the complexity of your identity setup.
Once the status changes from Enabling to Enabled, the domain is ready to handle identities in that specific region.
When the template is successfully uploaded to OCI, the initial discovery scan is started. When the scan is complete, you can view your cloud assets in Asset Inventory.
Last updated
Was this helpful?
