Closed liamkelly-esure closed 2 years ago
Your documentation needs updating, you state you need this;
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" }
but you actually need
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" }
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Following the documentation = https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/connect_queue i'm trying to create a connect queue, which works fine for
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",
}
}
But when I try to update it with outbound caller config, or a new resource entirely for a queue with outbound caller config, i get the following error
Error: Unsupported argument
on queues.tf line 30, in resource "aws_connect_queue" "test":
30: outbound_caller_config = {
An argument named "outbound_caller_config" is not expected here. Did you mean
to define a block of type "outbound_caller_config"?
My TF code is below;
resource "aws_connect_queue" "cancel-policy-transfers" {
instance_id = aws_connect_instance.claims_ccp.id
name = "Cancel Policy Transfers"
description = "Cancel Policy Transfers"
hours_of_operation_id = data.aws_connect_hours_of_operation.open_hours.hours_of_operation_id
outbound_caller_config = {
outbound_flow_id = "dsfds-sdfdf-dfdfd"
}
}
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",
}
}
I've added a new resource, copying straight from the link at the top of the page and I still get the same error, using latest version of the provider as well.
Any advice on how to get around this ? Would be really useful to have. Thanks
Weird enough, once updated the queue manually for flow id and number outbound, when i re-run TF, it shows that change, when i factor it back in, it then apply's fine without any issue.
I'm updating is this as i go along, seems like for the values, i can't use data sources, it must actually be the id of the outbound flow id and number id. Created a new resource now and that seems to work, very strange.
This does work, but the behaviour is strange for me to get to this;
resource "aws_connect_queue" "check-policy-transfers" {
instance_id = aws_connect_instance.claims_ccp.id
name = "Check Policy Transfers"
description = "Check Policy Transfers"
hours_of_operation_id = data.aws_connect_hours_of_operation.open_hours.hours_of_operation_id
outbound_caller_config {
outbound_caller_id_number_id = "b6566c8e-ad51-4358-9eb1-51df4f825d3e"
outbound_flow_id = data.aws_connect_contact_flow.test.contact_flow_id
}
}
Using TF v0.13.7