Resource: aws_finspace_kx_dataview

Terraform resource for managing an AWS FinSpace Kx Dataview.

Example Usage

Basic Usage

resource "aws_finspace_kx_dataview" "example" {
  name                 = "my-tf-kx-dataview"
  environment_id       = aws_finspace_kx_environment.example.id
  database_name        = aws_finspace_kx_database.example.name
  availability_zone_id = "use1-az2"
  description          = "Terraform managed Kx Dataview"
  az_mode              = "SINGLE"
  auto_update          = true

  segment_configurations {
    volume_name = aws_finspace_kx_volume.example.name
    db_paths    = ["/*"]
  }

  # Depending on the type of cache and size of the Kx Volume, create/update timeouts 
  # may need to be increased up to a potential maximum of 24 hours and the delete timeout to 12 hours.
  timeouts {
    create = "24h"
    update = "24h"
    delete = "12h"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

segment_configurations Argument Reference

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import an AWS FinSpace Kx Dataview using the id (environment ID, database name and dataview name, comma-delimited). For example:

import {
  to = aws_finspace_kx_dataview.example
  id = "n3ceo7wqxoxcti5tujqwzs,my-tf-kx-database,my-tf-kx-dataview"
}

Using terraform import, import an AWS FinSpace Kx Cluster using the id (environment ID and cluster name, comma-delimited). For example:

% terraform import aws_finspace_kx_dataview.example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-database,my-tf-kx-dataview