Skip to content

Commit

Permalink
Latest push:
Browse files Browse the repository at this point in the history
  • Loading branch information
carnellj-genesys committed Sep 24, 2024
1 parent 146201d commit 0e193c1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
12 changes: 7 additions & 5 deletions blueprint/genesys-cloud-cx-as-code/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ module "classifier_queues" {
classifier_queue_members = module.classifier_users.user_ids
}

module "classifier_email_routes" {
source = "./modules/email_routes"
genesys_email_domain = var.genesys_email_domain
}

module "classifier_data_actions" {
source = "./modules/data_actions"
classifier_url = var.classifier_url
Expand All @@ -44,4 +39,11 @@ module "classifier_data_actions" {

module "classifier_deploy_flows" {
source = "./modules/deploy_flows"
}

module "classifier_email_routes" {
source = "./modules/email_routes"
genesys_email_domain = var.genesys_email_domain
genesys_email_domain_region = var.genesys_email_domain_region
genesys_email_flow_id = module.classifier_deploy_flows.flow_id
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ resource "genesyscloud_routing_email_domain" "devengage_email_domain" {
domain_id = var.genesys_email_domain
subdomain = true
}

resource "genesyscloud_routing_email_route" "devengage_email_domain" {
domain_id = var.genesys_email_domain
pattern="support"
from_name="Financial Services"
from_email = "support@${var.genesys_email_domain}.${genesys_email_domain_region}"
flow_id = data.genesyscloud_flow.flow.id
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@ variable "genesys_email_domain" {
type = string
description = "The name of the domain. This is used to help build the email route"
}

variable "genesys_email_domain_region" {
type = string
description = "The name of the email region. This is used to help build the email route"
}

variable "genesys_email_flow_id" {
type = string
description = "The flow that will be executed on the inbound email."
}

0 comments on commit 0e193c1

Please sign in to comment.