Resource: aws_ivschat_room

Terraform resource for managing an AWS IVS (Interactive Video) Chat Room.

Example Usage

Basic Usage

resource "aws_ivschat_room" "example" {
  name = "tf-room"
}

Usage with Logging Configuration to S3 Bucket

resource "aws_s3_bucket" "example" {
  bucket_prefix = "tf-ivschat-logging-bucket-"
  force_destroy = true
}

resource "aws_ivschat_logging_configuration" "example" {
  name = "tf-ivschat-loggingconfiguration"

  lifecycle {
    create_before_destroy = true
  }

  destination_configuration {
    s3 {
      bucket_name = aws_s3_bucket.example.id
    }
  }
}

resource "aws_ivschat_room" "example" {
  name                              = "tf-ivschat-room"
  logging_configuration_identifiers = [aws_ivschat_logging_configuration.example.arn]
}

Argument Reference

The following arguments are optional:

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 IVS (Interactive Video) Chat Room using the ARN. For example:

import {
  to = aws_ivschat_room.example
  id = "arn:aws:ivschat:us-west-2:326937407773:room/GoXEXyB4VwHb"
}

Using terraform import, import IVS (Interactive Video) Chat Room using the ARN. For example:

% terraform import aws_ivschat_room.example arn:aws:ivschat:us-west-2:326937407773:room/GoXEXyB4VwHb