I’ve change the instance name several time. It wil...
# terraform
l
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
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
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
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
I will add a name to line 333 with something like: instance_alias = “connect1”
m
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
Oh okay. I will change it on Line 3. Thank you, Mark.
m
No problem 🙂