With this resource, you can enable a single client on a connection.
resource "auth0_connection" "my_conn" {
name = "My-Auth0-Connection"
strategy = "auth0"
}
resource "auth0_client" "my_client" {
name = "My-Auth0-Client"
}
# One connection to one client association.
# To prevent issues, avoid using this resource together with the `auth0_connection_clients` resource.
resource "auth0_connection_client" "my_conn_client_assoc" {
connection_id = auth0_connection.my_conn.id
client_id = auth0_client.my_client.id
}
client_id
(String) ID of the client for which the connection is enabled.connection_id
(String) ID of the connection on which to enable the client.id
(String) The ID of this resource.name
(String) The name of the connection on which to enable the client.strategy
(String) The strategy of the connection on which to enable the client.Import is supported using the following syntax:
# This resource can be imported by specifying the
# connection ID and client ID separated by "::" (note the double colon)
# <connectionID>::<clientID>
#
# Example:
terraform import auth0_connection_client.my_conn_client_assoc "con_XXXXX::XXXXXXXX"