Resource: aws_connect_queue

Provides an Amazon Connect Queue resource. For more information see Amazon Connect: Getting Started

Example Usage

Basic

resource "aws_connect_queue" "test" {
  instance_id           = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
  name                  = "Example Name"
  description           = "Example Description"
  hours_of_operation_id = "12345678-1234-1234-1234-123456789012"

  tags = {
    "Name" = "Example Queue",
  }
}

With Quick Connect IDs

resource "aws_connect_queue" "test" {
  instance_id           = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
  name                  = "Example Name"
  description           = "Example Description"
  hours_of_operation_id = "12345678-1234-1234-1234-123456789012"

  quick_connect_ids = [
    "12345678-abcd-1234-abcd-123456789012"
  ]

  tags = {
    "Name" = "Example Queue with Quick Connect IDs",
  }
}

With Outbound Caller Config

resource "aws_connect_queue" "test" {
  instance_id           = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
  name                  = "Example Name"
  description           = "Example Description"
  hours_of_operation_id = "12345678-1234-1234-1234-123456789012"

  outbound_caller_config {
    outbound_caller_id_name      = "example"
    outbound_caller_id_number_id = "12345678-abcd-1234-abcd-123456789012"
    outbound_flow_id             = "87654321-defg-1234-defg-987654321234"
  }

  tags = {
    "Name" = "Example Queue with Outbound Caller Config",
  }
}

Argument Reference

This resource supports the following arguments:

A outbound_caller_config 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 Queues using the instance_id and queue_id separated by a colon (:). For example:

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

Using terraform import, import Amazon Connect Queues using the instance_id and queue_id separated by a colon (:). For example:

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