Resource: aws_connect_lambda_function_association

Provides an Amazon Connect Lambda Function Association. For more information see Amazon Connect: Getting Started and Invoke AWS Lambda functions.

Example Usage

resource "aws_connect_lambda_function_association" "example" {
  function_arn = aws_lambda_function.example.arn
  instance_id  = aws_connect_instance.example.id
}

Argument Reference

This resource 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 aws_connect_lambda_function_association using the instance_id and function_arn separated by a comma (,). For example:

import {
  to = aws_connect_lambda_function_association.example
  id = "aaaaaaaa-bbbb-cccc-dddd-111111111111,arn:aws:lambda:us-west-2:123456789123:function:example"
}

Using terraform import, import aws_connect_lambda_function_association using the instance_id and function_arn separated by a comma (,). For example:

% terraform import aws_connect_lambda_function_association.example aaaaaaaa-bbbb-cccc-dddd-111111111111,arn:aws:lambda:us-west-2:123456789123:function:example