From c68a443dea383b794609fef7f08c6b2cb6293b29 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Fri, 21 Nov 2025 14:02:08 +0200 Subject: [PATCH 1/2] configure fix --- twilio-iac/terraform-modules/stages/configure/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twilio-iac/terraform-modules/stages/configure/main.tf b/twilio-iac/terraform-modules/stages/configure/main.tf index 71a7fd0ce7..593eefeeb0 100644 --- a/twilio-iac/terraform-modules/stages/configure/main.tf +++ b/twilio-iac/terraform-modules/stages/configure/main.tf @@ -171,14 +171,14 @@ resource "aws_ssm_parameter" "hrm_static_api_key_v2" { } resource "aws_ssm_parameter" "hrm_internal_api_static_key" { - name = "/${lower(var.environment)}/hrm/service/${lower(var.helpline_region)}/static_key/${nonsensitive(var.twilio_account_sid)}" + name = "/${lower(var.environment)}/hrm/service/${lower(var.helpline_region)}/static_key/${nonsensitive(local.secrets.twilio_account_sid)}" type = "SecureString" value = data.aws_ssm_parameter.hrm_static_api_key_legacy.value description = "Static key for internal HRM API access" tags = { Environment = lower(var.environment) - Name = "/${lower(var.environment)}/hrm/service/${lower(var.helpline_region)}/static_key/${nonsensitive(var.twilio_account_sid)}" + Name = "/${lower(var.environment)}/hrm/service/${lower(var.helpline_region)}/static_key/${nonsensitive(local.secrets.twilio_account_sid)}" Terraform = true } } From edbaa705ede9d750b003879d85416919081330eb Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Thu, 27 Nov 2025 10:47:25 +0200 Subject: [PATCH 2/2] add channel --- twilio-iac/helplines/as/staging.hcl | 49 +++++++++----- .../stages/system-down/.terraform.lock.hcl | 66 +------------------ 2 files changed, 32 insertions(+), 83 deletions(-) diff --git a/twilio-iac/helplines/as/staging.hcl b/twilio-iac/helplines/as/staging.hcl index 154205fde3..b74dc7695c 100644 --- a/twilio-iac/helplines/as/staging.hcl +++ b/twilio-iac/helplines/as/staging.hcl @@ -4,10 +4,10 @@ locals { config = merge(local.common_config, local.local_config) local_config = { - enable_external_recordings = true + enable_external_recordings = true enable_post_survey = true enable_datadog_monitoring = false - custom_task_routing_filter_expression = "channelType IN ['instagram','messenger','web','whatsapp','telegram','line','voice', 'modica'] OR isContactlessTask == true OR twilioNumber == 'messenger:131329426738030' " + custom_task_routing_filter_expression = "channelType IN ['instagram','messenger','web','whatsapp','telegram','line','voice', 'modica', 'sms'] OR isContactlessTask == true OR twilioNumber == 'messenger:131329426738030' " permission_config = "demo" #Studio flow @@ -19,15 +19,18 @@ locals { widget_from = "Aselo" chat_blocked_message = "Sorry, you're not able to contact Aselo from this device or account" error_message = "There has been an error with your message, please try writing us again." + outside_country_message = "Thank you for reaching out to Kellimni.com. Please note that our services are available exclusively to individuals currently residing in Malta. If you are located in Malta but are using a VPN that does not indicate a Maltese IP address, we recommend connecting via a standard, approved internet protocol to access our support. If you are outside Malta, we encourage you to visit Throughline [https://silenthill.findahelpline.com/] to locate support services available in your region. We appreciate your understanding and hope you are able to find the assistance you need. Best regards, The Kellimni.com Team" + ip_location_finder_url = "https://hrm-staging.tl.techmatters.org/lambda/ipLocationFinder" } channels = { webchat : { - channel_type = "web" - contact_identity = "" - templatefile = "/app/twilio-iac/helplines/as/templates/studio-flows/messaging-blocking-lambda-location-block-sd.tftpl" - channel_flow_vars = {} + channel_type = "web" + contact_identity = "" + templatefile = "/app/twilio-iac/helplines/as/templates/studio-flows/messaging-blocking-lambda-location-block-sd.tftpl" + channel_flow_vars = { + allowed_shortcode_locations = "MT,US,CL,ZA,IE,AR" } chatbot_unique_names = [] }, facebook : { @@ -82,11 +85,21 @@ locals { chatbot_unique_names = [] }, modica : { + messaging_mode = "conversations" + channel_type = "custom" + contact_identity = "modica" + templatefile = "/app/twilio-iac/helplines/templates/studio-flows/messaging-custom-channel-lex-v3-blocking-lambda-sd.tftpl" + channel_flow_vars = {} + chatbot_unique_names = [] + }, + sms : { messaging_mode = "conversations" - channel_type = "custom" - contact_identity = "modica" + channel_type = "sms" + contact_identity = "+19047064372" templatefile = "/app/twilio-iac/helplines/templates/studio-flows/messaging-custom-channel-lex-v3-blocking-lambda-sd.tftpl" - channel_flow_vars = {} + channel_flow_vars = { + + } chatbot_unique_names = [] } } @@ -105,15 +118,15 @@ locals { #System Down Configuration system_down_templatefile = "/app/twilio-iac/helplines/templates/studio-flows/system-down.tftpl" - enable_system_down = true - system_down_flow_vars = { - is_system_down = "false" - message = "We're currently experiencing technical issues, and your message may not be delivered. We're working to resolve the problem and will be back online shortly. We apologize for the inconvenience." - voice_message = "We're currently experiencing technical issues, and your call may not reach us. We're working to resolve the problem and will be back online shortly. We apologize for the inconvenience." - send_studio_message_function_sid= "ZH980bcf1102fd109e3d2f765bb0a78951" - call_action = "message" - forward_number = "+123" - recording_url = "https://.mp3" + enable_system_down = true + system_down_flow_vars = { + is_system_down = "false" + message = "We're currently experiencing technical issues, and your message may not be delivered. We're working to resolve the problem and will be back online shortly. We apologize for the inconvenience." + voice_message = "We're currently experiencing technical issues, and your call may not reach us. We're working to resolve the problem and will be back online shortly. We apologize for the inconvenience." + send_studio_message_function_sid = "ZH980bcf1102fd109e3d2f765bb0a78951" + call_action = "message" + forward_number = "+123" + recording_url = "https://.mp3" } } diff --git a/twilio-iac/stages/system-down/.terraform.lock.hcl b/twilio-iac/stages/system-down/.terraform.lock.hcl index 0f76bbc074..fd29930c73 100644 --- a/twilio-iac/stages/system-down/.terraform.lock.hcl +++ b/twilio-iac/stages/system-down/.terraform.lock.hcl @@ -25,8 +25,7 @@ provider "registry.terraform.io/datadog/datadog" { } provider "registry.terraform.io/hashicorp/aws" { - version = "5.11.0" - constraints = ">= 4.63.0" + version = "5.11.0" hashes = [ "h1:OyEBhYcTPChBb0gooSlLIcrxakh72qAN+Sd8Oo12uoc=", "h1:euyha7/tuEI2q8/KQP7fB3EGA4KydEB26b/I1SxJ8xI=", @@ -48,69 +47,6 @@ provider "registry.terraform.io/hashicorp/aws" { ] } -provider "registry.terraform.io/hashicorp/external" { - version = "2.3.4" - constraints = ">= 1.0.0" - hashes = [ - "h1:8mByRL3zDm50yiEXMrKtWC2FaLwuvvyjKI+eWuD1dn0=", - "h1:XWkRZOLKMjci9/JAtE8X8fWOt7A4u+9mgXSUjc4Wuyo=", - "zh:037fd82cd86227359bc010672cd174235e2d337601d4686f526d0f53c87447cb", - "zh:0ea1db63d6173d01f2fa8eb8989f0809a55135a0d8d424b08ba5dabad73095fa", - "zh:17a4d0a306566f2e45778fbac48744b6fd9c958aaa359e79f144c6358cb93af0", - "zh:298e5408ab17fd2e90d2cd6d406c6d02344fe610de5b7dae943a58b958e76691", - "zh:38ecfd29ee0785fd93164812dcbe0664ebbe5417473f3b2658087ca5a0286ecb", - "zh:59f6a6f31acf66f4ea3667a555a70eba5d406c6e6d93c2c641b81d63261eeace", - "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", - "zh:ad0279dfd09d713db0c18469f585e58d04748ca72d9ada83883492e0dd13bd58", - "zh:c69f66fd21f5e2c8ecf7ca68d9091c40f19ad913aef21e3ce23836e91b8cbb5f", - "zh:d4a56f8c48aa86fc8e0c233d56850f5783f322d6336f3bf1916e293246b6b5d4", - "zh:f2b394ebd4af33f343835517e80fc876f79361f4688220833bc3c77655dd2202", - "zh:f31982f29f12834e5d21e010856eddd19d59cd8f449adf470655bfd19354377e", - ] -} - -provider "registry.terraform.io/hashicorp/local" { - version = "2.5.2" - constraints = ">= 1.0.0" - hashes = [ - "h1:6XyefmvbkprppmYbGmMcQW5NB4w6C363SSShzuhF4R0=", - "h1:JlMZD6nYqJ8sSrFfEAH0Vk/SL8WLZRmFaMUF9PJK5wM=", - "zh:136299545178ce281c56f36965bf91c35407c11897f7082b3b983d86cb79b511", - "zh:3b4486858aa9cb8163378722b642c57c529b6c64bfbfc9461d940a84cd66ebea", - "zh:4855ee628ead847741aa4f4fc9bed50cfdbf197f2912775dd9fe7bc43fa077c0", - "zh:4b8cd2583d1edcac4011caafe8afb7a95e8110a607a1d5fb87d921178074a69b", - "zh:52084ddaff8c8cd3f9e7bcb7ce4dc1eab00602912c96da43c29b4762dc376038", - "zh:71562d330d3f92d79b2952ffdda0dad167e952e46200c767dd30c6af8d7c0ed3", - "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", - "zh:805f81ade06ff68fa8b908d31892eaed5c180ae031c77ad35f82cb7a74b97cf4", - "zh:8b6b3ebeaaa8e38dd04e56996abe80db9be6f4c1df75ac3cccc77642899bd464", - "zh:ad07750576b99248037b897de71113cc19b1a8d0bc235eb99173cc83d0de3b1b", - "zh:b9f1c3bfadb74068f5c205292badb0661e17ac05eb23bfe8bd809691e4583d0e", - "zh:cc4cbcd67414fefb111c1bf7ab0bc4beb8c0b553d01719ad17de9a047adff4d1", - ] -} - -provider "registry.terraform.io/hashicorp/null" { - version = "3.2.2" - constraints = ">= 2.0.0" - hashes = [ - "h1:Gef5VGfobY5uokA5nV/zFvWeMNR2Pmq79DH94QnNZPM=", - "h1:zT1ZbegaAYHwQa+QwIFugArWikRJI9dqohj8xb0GY88=", - "zh:3248aae6a2198f3ec8394218d05bd5e42be59f43a3a7c0b71c66ec0df08b69e7", - "zh:32b1aaa1c3013d33c245493f4a65465eab9436b454d250102729321a44c8ab9a", - "zh:38eff7e470acb48f66380a73a5c7cdd76cc9b9c9ba9a7249c7991488abe22fe3", - "zh:4c2f1faee67af104f5f9e711c4574ff4d298afaa8a420680b0cb55d7bbc65606", - "zh:544b33b757c0b954dbb87db83a5ad921edd61f02f1dc86c6186a5ea86465b546", - "zh:696cf785090e1e8cf1587499516b0494f47413b43cb99877ad97f5d0de3dc539", - "zh:6e301f34757b5d265ae44467d95306d61bef5e41930be1365f5a8dcf80f59452", - "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", - "zh:913a929070c819e59e94bb37a2a253c228f83921136ff4a7aa1a178c7cce5422", - "zh:aa9015926cd152425dbf86d1abdbc74bfe0e1ba3d26b3db35051d7b9ca9f72ae", - "zh:bb04798b016e1e1d49bcc76d62c53b56c88c63d6f2dfe38821afef17c416a0e1", - "zh:c23084e1b23577de22603cff752e59128d83cfecc2e6819edadd8cf7a10af11e", - ] -} - provider "registry.terraform.io/twilio/twilio" { version = "0.17.0" constraints = "0.17.0"