Configuring a Tenancy Using a Terraform Configuration

Data Labeling can be automatically configured with the Oracle Cloud Infrastructure Resource Manager using a Terraform configuration.

To configure a tenancy for Data Labeling, you must have:
  • An Oracle Cloud Infrastructure tenancy.
  • The OCID of the compartment where you want to create your stack.
  • A user account that includes the following:
  • Ensure that your tenancy has service limits availability for the Oracle Cloud Infrastructure resources you want to use. The tenancy configuration includes the following resources:
    Tenancy Resources
    Component Description Default Name Optional Enabled by Default? Number of Items Provisioned Notes
    Group Oracle Cloud Infrastructure Users Group DataLabelingGroup False True 1 User account policies that are created in this process are granted to this group. Add users to this group to grant them access to Data Labeling.
    Dynamic Group Oracle Cloud Infrastructure Dynamic Group DataLabelingDynamicGroup False True 1
    Policies (root) Oracle Cloud Infrastructure Security Policies DataLabelingRootPolicies False True 1 A policy at the root compartment level to grant access to your Oracle Cloud Infrastructure tenancy.

When configuring a tenancy using a Resource Manager Terraform configuration, you create a stack, select a template, provide identifying information for the new stack, and update variables. You can always edit your stack later.

  1. From the navigation menu, under Resource Manager, click Developer Services.
  2. Click Stacks.
  3. Choose a compartment you have permission to work in. If you don't know which one to use, contact your administrator.
    The page displays only the resources in that compartment.
  4. Click Create Stack.
  5. Click Select Solution.
  6. Select one of these Terraform configuration options:

    Option

    Action

    My Configuration

    Drop your custom Teraform configuration folder or ZIP file into the text box or browse for it.

    Oracle Quickstart contains a simple Terraform configuration example and other information.

    Source Code Control System

    Select or create a source (like Git Hub) that identifies the repository and a branch if needed.

  7. Enter a Name for the new stack, or use the default.
  8. (Optional) Enter a Description.
  9. Select the compartment where you want to create the stack. This compartment contains all the resources the stack creates.

    A compartment from the list scope is set by default.

  10. For Terraform version, select the version you want for the Terraform configuration.
  11. (Optional) You can apply tags. If you have permissions to create a resource, you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you are not sure if you should apply tags, skip this option (you can apply tags later) or ask your administrator.
  12. Click Next.

    The Configure Variables panel displays variables automatically populated from the Terraform configuration for the Data Labeling template.

  13. Review the IAM variables and change as appropriate. Don't use spaces in any of the variables.
    Important

    Don't add your private key or other confidential information to configuration variables.

  14. Click Next and review the stack configuration.
  15. In the Review panel, verify your stack configuration.
  16. Select Run Apply to apply the Terraform script and create the Data Labeling resources.
  17. Click Create to create your stack.

To see a list of the Data Labeling resources, under Resources, click Associated Resources.

Managing Stacks and Jobs contains details about Resource Manager stacks.