# How can I access client secret and domain properties within terraform?

**URL:** <https://community.auth0.com/t/how-can-i-access-client-secret-and-domain-properties-within-terraform/184210>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [March 20, 2025, 4:07pm UTC](https://community.auth0.com/t/how-can-i-access-client-secret-and-domain-properties-within-terraform/184210 "2025-03-20T16:07:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjvortex](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jjvortex/32/73739_2.png) [@jjvortex](https://community.auth0.com/u/jjvortex)\
**Post date:** [March 20, 2025, 4:07pm UTC](https://community.auth0.com/t/how-can-i-access-client-secret-and-domain-properties-within-terraform/184210/1 "2025-03-20T16:07:15Z")

</div>

Ready to post? 🔍 First, try searching for your answer.

Hello. I’m new to auth0 and am having some problems trying to manage my resources with terraform. I’ve imported pre-existing resources into terraform (auth0 tf generate) but I want to access the client id, client secret and domain values for each app and store them in our vault (aws secrets manager). In the auth0 console these would be under “Application \> Settings” (not Credentials).

I cannot determine in which resource these data exist. I don’t see them in auth0\_client and I’m not sure auth0\_client\_credentials is correct either.

Any assistance would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 20, 2025, 4:21pm UTC](https://community.auth0.com/t/how-can-i-access-client-secret-and-domain-properties-within-terraform/184210/3 "2025-03-20T16:21:43Z")

</div>

Hi @jjvortex

Welcome to the Auth0 Community!

The Client ID and Secret can be accessed via the `auth0_client_credentials` resource. However, in order to access the **Client Secret** , you need additional configuration on your terraform client as stated in the [documentation](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/client_credentials):

> - [`client_secret`](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/client_credentials#client_secret-3) (String, Sensitive) Secret for the client when using `client_secret_post` or `client_secret_basic` authentication method. Keep this private. To access this attribute you need to add the `read:client_keys` scope to the Terraform client. Otherwise, the attribute will contain an empty string. The attribute will also be an empty string in case `private_key_jwt` is selected as an authentication method.

If you have any other questions, feel free to leave a reply!

Kind Regards,  
Nik

---

<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:** [April 3, 2025, 4:22pm UTC](https://community.auth0.com/t/how-can-i-access-client-secret-and-domain-properties-within-terraform/184210/4 "2025-04-03T16:22:35Z")

</div>

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