# Passwordless Email connection using terraform shows Something Went wrong page

**URL:** <https://community.auth0.com/t/passwordless-email-connection-using-terraform-shows-something-went-wrong-page/118978>\
**Category:** Get Help\
**Tags:** passwordless-email-connection, connections\
**Created:** [October 20, 2023, 2:45am UTC](https://community.auth0.com/t/passwordless-email-connection-using-terraform-shows-something-went-wrong-page/118978 "2023-10-20T02:45:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruchika.kumar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ruchika.kumar/32/72923_2.png) [@ruchika.kumar](https://community.auth0.com/u/ruchika.kumar)\
**Post date:** [October 20, 2023, 2:45am UTC](https://community.auth0.com/t/passwordless-email-connection-using-terraform-shows-something-went-wrong-page/118978/1 "2023-10-20T02:45:12Z")

</div>

I have been trying to create an M2M application and a Passwordless Email connection for it using terraform but I always see the Email section in Passwordless enabled but when I click on it, it gives me “Something went Wrong” page. I looked at the logs and it seems to be creating and updating the connection successfully but still the Email section gives the error window.

I use below code in terraform.

resource “auth0\_connection” “passwordless\_email” {  
strategy = “email”  
name = “email”  
}

resource “auth0\_connection\_client” “directory\_service\_connection” {  
connection\_id = auth0\_connection.passwordless\_email.id  
client\_id = \<–m2m application client id–\>  
}

This all works if i create the connection manually but not through terraform. Kindly help.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [October 20, 2023, 1:48pm UTC](https://community.auth0.com/t/passwordless-email-connection-using-terraform-shows-something-went-wrong-page/118978/3 "2023-10-20T13:48:27Z")

</div>

Hey there @ruchika.kumar !

Can you please try first configuring a connection with terraform so that later you can link it with a client app as in your code above?

(for the passwordless connection, please scroll down) - [Terraform Registry](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/connection)

---

<div class="post-metadata">

**Author:** ![ruchika.kumar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ruchika.kumar/32/72923_2.png) [@ruchika.kumar](https://community.auth0.com/u/ruchika.kumar)\
**Post date:** [October 20, 2023, 7:15pm UTC](https://community.auth0.com/t/passwordless-email-connection-using-terraform-shows-something-went-wrong-page/118978/4 "2023-10-20T19:15:08Z")

</div>

thanks @marcelina.barycka I had to separately create/configure the connections first in terraform and then link them with my applications.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 3, 2023, 7:15pm UTC](https://community.auth0.com/t/passwordless-email-connection-using-terraform-shows-something-went-wrong-page/118978/5 "2023-11-03T19:15:43Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
