Resource: aws_connect_instance_storage_config

Provides an Amazon Connect Instance Storage Config resource. For more information see Amazon Connect: Getting Started

Example Usage

Storage Config Kinesis Firehose Config

resource "aws_connect_instance_storage_config" "example" {
  instance_id   = aws_connect_instance.example.id
  resource_type = "CONTACT_TRACE_RECORDS"

  storage_config {
    kinesis_firehose_config {
      firehose_arn = aws_kinesis_firehose_delivery_stream.example.arn
    }
    storage_type = "KINESIS_FIREHOSE"
  }
}

Storage Config Kinesis Stream Config

resource "aws_connect_instance_storage_config" "example" {
  instance_id   = aws_connect_instance.example.id
  resource_type = "CONTACT_TRACE_RECORDS"

  storage_config {
    kinesis_stream_config {
      stream_arn = aws_kinesis_stream.example.arn
    }
    storage_type = "KINESIS_STREAM"
  }
}

Storage Config Kinesis Video Stream Config

resource "aws_connect_instance_storage_config" "example" {
  instance_id   = aws_connect_instance.example.id
  resource_type = "MEDIA_STREAMS"

  storage_config {
    kinesis_video_stream_config {
      prefix                 = "example"
      retention_period_hours = 3

      encryption_config {
        encryption_type = "KMS"
        key_id          = aws_kms_key.example.arn
      }
    }
    storage_type = "KINESIS_VIDEO_STREAM"
  }
}

Storage Config S3 Config

resource "aws_connect_instance_storage_config" "example" {
  instance_id   = aws_connect_instance.example.id
  resource_type = "CHAT_TRANSCRIPTS"

  storage_config {
    s3_config {
      bucket_name   = aws_s3_bucket.example.id
      bucket_prefix = "example"
    }
    storage_type = "S3"
  }
}

Storage Config S3 Config with Encryption Config

resource "aws_connect_instance_storage_config" "example" {
  instance_id   = aws_connect_instance.example.id
  resource_type = "CHAT_TRANSCRIPTS"

  storage_config {
    s3_config {
      bucket_name   = aws_s3_bucket.example.id
      bucket_prefix = "example"

      encryption_config {
        encryption_type = "KMS"
        key_id          = aws_kms_key.example.arn
      }
    }
    storage_type = "S3"
  }
}

Argument Reference

This resource supports the following arguments:

storage_config

The storage_config configuration block supports the following arguments:

kinesis_firehose_config

The kinesis_firehose_config configuration block supports the following arguments:

kinesis_stream_config

The kinesis_stream_config configuration block supports the following arguments:

kinesis_video_stream_config

The kinesis_video_stream_config configuration block supports the following arguments:

s3_config

The s3_config configuration block supports the following arguments:

encryption_config

The encryption_config configuration block supports the following arguments:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import Amazon Connect Instance Storage Configs using the instance_id, association_id, and resource_type separated by a colon (:). For example:

import {
  to = aws_connect_instance_storage_config.example
  id = "f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5:CHAT_TRANSCRIPTS"
}

Using terraform import, import Amazon Connect Instance Storage Configs using the instance_id, association_id, and resource_type separated by a colon (:). For example:

% terraform import aws_connect_instance_storage_config.example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5:CHAT_TRANSCRIPTS