https://platformengineering.org logo
l

Lights On

10/12/2022, 1:53 PM
I’ve change the instance name several time. It will show the new instance name with the same error message. https://GitHub.com/ccarrylab/aws-tf-amazon-connect
m

Mark Hughes

10/13/2022, 1:23 PM
You don’t happen to already have a connect instance with that instance alias, do you?
like one already created in your aws account called “default”
l

Lights On

10/13/2022, 1:41 PM
I already have a connect instance name “connect”. Even when I change the name it show it already exist. When I go to the Kms page or the connect page. The new name isn’t there.
I’m new to Amazon Connect.
m

Mark Hughes

10/13/2022, 2:21 PM
yeah but the error isn’t talking about the name, it’s referring to the alias https://github.com/ccarrylab/aws-tf-amazon-connect/blob/main/main.tf#L333 in your variables file, that value defaults to “default” does the instance you already have also have an istance_alias of “default”?
I’ve never used Amazon connect before myself, but judging from the error, that attribute has to be unique
l

Lights On

10/13/2022, 2:28 PM
I will add a name to line 333 with something like: instance_alias = “connect1”
m

Mark Hughes

10/13/2022, 2:56 PM
That should work, but I would advise keeping it as a variable and change the value of the variable instead. We don’t like hardcoded values where we can avoid them 🙂
l

Lights On

10/13/2022, 2:57 PM
Oh okay. I will change it on Line 3. Thank you, Mark.
m

Mark Hughes

10/13/2022, 3:05 PM
No problem 🙂
23 Views