@@ -620,188 +620,6 @@ resource "auth0_connection_clients" "business-db-clients" {
620620 ]
621621}
622622
623- // -- sample db and sample org for supplier --
624- resource "auth0_organization" "test-supplier-org" {
625- name = " acme-supplier"
626- display_name = " ACME Supplier"
627- branding {
628- logo_url = " https://media.licdn.com/dms/image/v2/D4D0BAQFVEDpTiYC7uA/company-logo_100_100/B4DZde9L2TGUAQ-/0/1749644787666/supplierpay_logo?e=1763596800&v=beta&t=R-N5Y11fjYevt4JFg7CEeSgSlsPc2HAR_Xml-jshytg"
629- }
630- }
631-
632- resource "auth0_organization_connections" "test-supplier-connections" {
633- organization_id = auth0_organization. test-supplier-org . id
634- enabled_connections {
635- connection_id = auth0_connection. business-db . id
636- }
637- }
638-
639- resource "auth0_user" "test-supplier-admin" {
640- depends_on = [auth0_connection . business-db ]
641- connection_name = auth0_connection. business-db . name
642- email = " admin@supplier.org"
643- password = var. default-password
644- }
645-
646- resource "auth0_user" "test-supplier-member" {
647- depends_on = [auth0_connection . business-db ]
648- connection_name = auth0_connection. business-db . name
649- email = " member@supplier.org"
650- password = var. default-password
651- }
652-
653- resource "auth0_organization_members" "test-supplier-members" {
654- organization_id = auth0_organization. test-supplier-org . id
655- members = [
656- auth0_user . test-supplier-admin . id ,
657- auth0_user . test-supplier-member . id
658- ]
659- }
660-
661- resource "auth0_organization_member_roles" "test-supplier-admin" {
662- depends_on = [
663- auth0_organization_members . test-supplier-members
664- ]
665- organization_id = auth0_organization. test-supplier-org . id
666- roles = [
667- auth0_role . supplier-admin . id
668- ]
669- user_id = auth0_user. test-supplier-admin . id
670- }
671-
672- resource "auth0_organization_member_roles" "test-supplier-members" {
673- depends_on = [
674- auth0_organization_members . test-supplier-members
675- ]
676- organization_id = auth0_organization. test-supplier-org . id
677- roles = [
678- auth0_role . supplier-member . id
679- ]
680- user_id = auth0_user. test-supplier-member . id
681- }
682-
683-
684- // -- sample db and sample org for test community --
685- resource "auth0_organization" "test-community-org" {
686- name = " acme-community"
687- display_name = " ACME Community"
688- branding {
689- logo_url = " https://media.licdn.com/dms/image/v2/C560BAQHeJjOy9xiXAg/company-logo_200_200/company-logo_200_200/0/1630585785025/community_health_network_logo?e=1763596800&v=beta&t=4E7hgzesvOxL0TMAkcJT8jW1f1MXbHrKxJXouEmv0us"
690- }
691- }
692-
693- resource "auth0_organization_connections" "test-community-connections" {
694- organization_id = auth0_organization. test-community-org . id
695- enabled_connections {
696- connection_id = auth0_connection. business-db . id
697- }
698- }
699-
700- resource "auth0_user" "test-community-admin" {
701- depends_on = [auth0_connection . business-db ]
702- connection_name = auth0_connection. business-db . name
703- email = " admin@community.org"
704- password = var. default-password
705- }
706-
707- resource "auth0_user" "test-community-member" {
708- depends_on = [auth0_connection . business-db ]
709- connection_name = auth0_connection. business-db . name
710- email = " member@community.org"
711- password = var. default-password
712- }
713-
714- resource "auth0_organization_members" "test-community-members" {
715- organization_id = auth0_organization. test-community-org . id
716- members = [
717- auth0_user . test-community-admin . id ,
718- auth0_user . test-community-member . id
719- ]
720- }
721-
722- resource "auth0_organization_member_roles" "test-community-admin" {
723- depends_on = [
724- auth0_organization_members . test-community-members
725- ]
726- organization_id = auth0_organization. test-community-org . id
727- roles = [
728- auth0_role . community-admin . id
729- ]
730- user_id = auth0_user. test-community-admin . id
731- }
732-
733- resource "auth0_organization_member_roles" "test-community-members" {
734- depends_on = [
735- auth0_organization_members . test-community-members
736- ]
737- organization_id = auth0_organization. test-community-org . id
738- roles = [
739- auth0_role . community-member . id
740- ]
741- user_id = auth0_user. test-community-member . id
742- }
743-
744- // -- sample db and sample org for test logistics --
745- resource "auth0_organization" "test-logistics-org" {
746- name = " acme-logistics"
747- display_name = " ACME Logistics"
748- branding {
749- logo_url = " https://media.licdn.com/dms/image/v2/C4E0BAQHdZBFG1mvW3A/company-logo_200_200/company-logo_200_200/0/1630618643965/express_logistics_logo?e=1763596800&v=beta&t=Ibv8y78ymX4eYbJ4rzXKAkn8L4XIrq0imtoEeC5rSek"
750- }
751- }
752-
753- resource "auth0_organization_connections" "test-logistics-connections" {
754- organization_id = auth0_organization. test-logistics-org . id
755- enabled_connections {
756- connection_id = auth0_connection. business-db . id
757- }
758- }
759-
760- resource "auth0_user" "test-logistics-admin" {
761- depends_on = [auth0_connection . business-db ]
762- connection_name = auth0_connection. business-db . name
763- email = " admin@logistics.org"
764- password = var. default-password
765- }
766-
767- resource "auth0_user" "test-logistics-driver" {
768- depends_on = [auth0_connection . business-db ]
769- connection_name = auth0_connection. business-db . name
770- email = " driver@logistics.org"
771- password = var. default-password
772- }
773-
774- resource "auth0_organization_members" "test-logistics-members" {
775- organization_id = auth0_organization. test-logistics-org . id
776- members = [
777- auth0_user . test-logistics-admin . id ,
778- auth0_user . test-logistics-driver . id
779- ]
780- }
781-
782- resource "auth0_organization_member_roles" "test-logistics-admin" {
783- depends_on = [
784- auth0_organization_members . test-logistics-members
785- ]
786- organization_id = auth0_organization. test-logistics-org . id
787- roles = [
788- auth0_role . logistics-admin . id
789- ]
790- user_id = auth0_user. test-logistics-admin . id
791- }
792-
793- resource "auth0_organization_member_roles" "test-logistics-drivers" {
794- depends_on = [
795- auth0_organization_members . test-logistics-members
796- ]
797- organization_id = auth0_organization. test-logistics-org . id
798- roles = [
799- auth0_role . logistics-driver . id
800- ]
801- user_id = auth0_user. test-logistics-driver . id
802- }
803-
804-
805623# Creates a Cloudflare D1 database for CRM data. A future worker/API will connect to this DB.
806624resource "cloudflare_d1_database" "business" {
807625 account_id = var. cloudflare_account_id
@@ -833,3 +651,7 @@ database_name = "${cloudflare_d1_database.business.name}"
833651database_id = "${ cloudflare_d1_database . business . id } "
834652EOT
835653}
654+
655+ output "business-client_id" {
656+ value = auth0_client. business . client_id
657+ }
0 commit comments