» oci_analytics_analytics_instance

This resource provides the Analytics Instance resource in Oracle Cloud Infrastructure Analytics service.

Create a new AnalyticsInstance in the specified compartment. The operation is long-running and creates a new WorkRequest.

» Example Usage

resource "oci_analytics_analytics_instance" "test_analytics_instance" {
    #Required
    capacity {
        #Required
        capacity_type = "${var.analytics_instance_capacity_capacity_type}"
        capacity_value = "${var.analytics_instance_capacity_capacity_value}"
    }
    compartment_id = "${var.compartment_id}"
    feature_set = "${var.analytics_instance_feature_set}"
    license_type = "${var.analytics_instance_license_type}"
    name = "${var.analytics_instance_name}"

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    description = "${var.analytics_instance_description}"
    email_notification = "${var.analytics_instance_email_notification}"
    freeform_tags = {"Department"= "Finance"}
    idcs_access_token = "${var.analytics_instance_idcs_access_token}"
}

» Argument Reference

The following arguments are supported:

  • capacity - (Required)
    • capacity_type - (Required) The capacity model to use.
    • capacity_value - (Required) (Updatable) The capacity value selected (OLPU count, number of users, ...etc...). This parameter affects the number of CPUs, amount of memory or other resources allocated to the instance.
  • compartment_id - (Required) (Updatable) The OCID of the compartment.
  • defined_tags - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • description - (Optional) (Updatable) Optional description.
  • email_notification - (Optional) (Updatable) Email address receiving notifications.
  • feature_set - (Required) Analytics feature set.
  • freeform_tags - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • idcs_access_token - (Optional) IDCS access token identifying a stripe and service administrator user.
  • license_type - (Required) (Updatable) The license used for the service.
  • name - (Required) The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

» Attributes Reference

The following attributes are exported:

  • capacity -
    • capacity_type - The capacity model to use.
    • capacity_value - The capacity value selected (OLPU count, number of users, ...etc...). This parameter affects the number of CPUs, amount of memory or other resources allocated to the instance.
  • compartment_id - The OCID of the compartment.
  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • description - Optional description.
  • email_notification - Email address receiving notifications.
  • feature_set - Analytics feature set.
  • freeform_tags - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • id - The resource OCID.
  • license_type - The license used for the service.
  • name - The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed.
  • service_url - URL of the Analytics service.
  • state - The current state of an instance.
  • time_created - The date and time the instance was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
  • time_updated - The date and time the instance was last updated (in the format defined by RFC3339). This timestamp represents updates made through this API. External events do not influence it.

» Import

AnalyticsInstances can be imported using the id, e.g.

$ terraform import oci_analytics_analytics_instance.test_analytics_instance "id"