hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

[Enhancement]: Add LexV2 support to aws_connect_bot_association #30869

Open dthvt opened 1 year ago

dthvt commented 1 year ago

Description

The existing aws_connect_bot_association only support LexV1 bots. The existing code has some comments indicating basics of how to add LexV2 bots. V2 was released in 2021 and is now the default version for Lex bots in the console. Adding support for LexV2 bots in Connect would be very helpful.

(Native Terraform LexV2 bot support would also be nice, but my specific use case is to integration AWS QnABot with Connect. QnABot's CloudFormation template deploys LexV2, and we'd like to use terraform to integrate that bot with our Connect instance.)

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_connect_bot_association" "mybot" {
  instance_id = aws_connect_instance.myinstance.id
  lex_v2_bot {
    alias_arn = var.lexv2botalias_arn
  }
}

References

Would you like to implement a fix?

Yes

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue