With this resource, you can manage all of the enabled clients on a connection.
resource "auth0_connection" "my_conn" {
name = "My-Auth0-Connection"
strategy = "auth0"
}
resource "auth0_client" "my_first_client" {
name = "My-First-Auth0-Client"
}
resource "auth0_client" "my_second_client" {
name = "My-Second-Auth0-Client"
}
# One connection to many clients association.
# To prevent issues, avoid using this resource together with the `auth0_connection_client` resource.
resource "auth0_connection_clients" "my_conn_clients_assoc" {
connection_id = auth0_connection.my_conn.id
enabled_clients = [
auth0_client.my_first_client.id,
auth0_client.my_second_client.id
]
}
connection_id
(String) ID of the connection on which to enable the client.enabled_clients
(Set of String) IDs of the clients for which the connection is enabled.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.
#
# Example:
terraform import auth0_connection_clients.my_conn_clients_assoc "con_XXXXX"