Resource: aws_connect_instance

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

Example Usage

resource "aws_connect_instance" "test" {
  identity_management_type = "CONNECT_MANAGED"
  inbound_calls_enabled    = true
  instance_alias           = "friendly-name-connect"
  outbound_calls_enabled   = true
}

Example Usage with Existing Active Directory

resource "aws_connect_instance" "test" {
  directory_id             = aws_directory_service_directory.test.id
  identity_management_type = "EXISTING_DIRECTORY"
  inbound_calls_enabled    = true
  instance_alias           = "friendly-name-connect"
  outbound_calls_enabled   = true
}

Example Usage with SAML

resource "aws_connect_instance" "test" {
  identity_management_type = "SAML"
  inbound_calls_enabled    = true
  instance_alias           = "friendly-name-connect"
  outbound_calls_enabled   = true
}

Argument Reference

This resource supports the following arguments:

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 Connect instances using the id. For example:

import {
  to = aws_connect_instance.example
  id = "f1288a1f-6193-445a-b47e-af739b2"
}

Using terraform import, import Connect instances using the id. For example:

% terraform import aws_connect_instance.example f1288a1f-6193-445a-b47e-af739b2