Skip to content

Discovery using Terraform#

This topic allows you to configure Privacera Discovery with Azure using Terraform.

Prerequisites

Ensure the following prerequisite are met:

  • Assign permissions to create Azure resources using managed-identity. For more information, refer to create Azure resources.

Configuration

  1. SSH to instance as ${USER}.

  2. Run the following commands.

    cd ~/privacera/privacera-manager
    cp config/sample-vars/vars.discovery.azure.yml config/custom-vars/
    vi config/custom-vars/vars.discovery.azure.yml
    
  3. Modify the following values.

    ########### Variables of Terraform for resource creation ##########
    CREATE_AZURE_RESOURCES: "true"
    DISCOVERY_AZURE_RESOURCE_GROUP: "<PLEASE_CHANGE>"
    DISCOVERY_AZURE_COSMOS_DB_ACCOUNT: "<PLEASE_CHANGE>"
    


    Property Description Example
    CREATE_AZURE_RESOURCES  For terraform usage, assign the value as true.  Its default value is false. true 
    DISCOVERY_AZURE_RESOURCE_GROUP Get the value from the Prerequisite section. resource1 
    DISCOVERY_AZURE_COSMOS_DB_ACCOUNT  Get the value from the Prerequisite section. database1
  4. Run the following commands.

    cd ~/privacera/privacera-manager
    ./privacera-manager.sh update
    

Last update: July 23, 2021