Provides an Amazon Connect instance resource. For more information see Amazon Connect: Getting Started
resource "aws_connect_instance" "test" {
identity_management_type = "CONNECT_MANAGED"
inbound_calls_enabled = true
instance_alias = "friendly-name-connect"
outbound_calls_enabled = true
}
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
}
resource "aws_connect_instance" "test" {
identity_management_type = "SAML"
inbound_calls_enabled = true
instance_alias = "friendly-name-connect"
outbound_calls_enabled = true
}
This resource supports the following arguments:
auto_resolve_best_voices_enabled
- (Optional) Specifies whether auto resolve best voices is enabled. Defaults to true
.contact_flow_logs_enabled
- (Optional) Specifies whether contact flow logs are enabled. Defaults to false
.contact_lens_enabled
- (Optional) Specifies whether contact lens is enabled. Defaults to true
.directory_id
- (Optional) The identifier for the directory if identity_management_type is EXISTING_DIRECTORY
.early_media_enabled
- (Optional) Specifies whether early media for outbound calls is enabled . Defaults to true
if outbound calls is enabled.identity_management_type
- (Required) Specifies the identity management type attached to the instance. Allowed Values are: SAML
, CONNECT_MANAGED
, EXISTING_DIRECTORY
.inbound_calls_enabled
- (Required) Specifies whether inbound calls are enabled.instance_alias
- (Optional) Specifies the name of the instance. Required if directory_id
not specified.multi_party_conference_enabled
- (Optional) Specifies whether multi-party calls/conference is enabled. Defaults to false
.outbound_calls_enabled
- (Required) Specifies whether outbound calls are enabled.
This resource exports the following attributes in addition to the arguments above:
id
- The identifier of the instance.arn
- Amazon Resource Name (ARN) of the instance.created_time
- When the instance was created.service_role
- The service role of the instance.status
- The state of the instance.create
- (Default 5m
)delete
- (Default 5m
)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