Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Sep 10, 2024
1 parent aa66362 commit 1d4c2c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion infrastructure/production/client_gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ module "client_gateway" {
db_username = data.terraform_remote_state.core_infrastructure.outputs.db_cluster.master_username
db_host = data.terraform_remote_state.core_infrastructure.outputs.db_cluster.endpoint
db_port = data.terraform_remote_state.core_infrastructure.outputs.db_cluster.port
services_function = module.services.function
services_function = module.services
}
7 changes: 3 additions & 4 deletions infrastructure/production/switch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ module "switch" {
sip_alternative_port = var.sip_alternative_port
freeswitch_event_socket_port = var.freeswitch_event_socket_port
json_cdr_password_parameter = data.aws_ssm_parameter.somleng_services_password
services_function = module.services.function
services_function = module.services
internal_route53_zone = data.terraform_remote_state.core_infrastructure.outputs.route53_zone_internal_somleng_org
lb_rule_index = 20
app_image = data.terraform_remote_state.core.outputs.switch_ecr_repository.repository_uri
nginx_image = data.terraform_remote_state.core.outputs.nginx_ecr_repository.repository_uri
freeswitch_image = data.terraform_remote_state.core.outputs.freeswitch_ecr_repository.repository_uri
freeswitch_event_logger_image = data.terraform_remote_state.core.outputs.freeswitch_event_logger_ecr_repository.repository_uri
external_rtp_ip = data.terraform_remote_state.core_infrastructure.outputs.hydrogen_region.vpc.nat_public_ips[0]
alternative_sip_outbound_ip = data.terraform_remote_state.core_infrastructure.outputs.nat_instance_ip
alternative_rtp_ip = data.terraform_remote_state.core_infrastructure.outputs.nat_instance_ip
alternative_sip_outbound_ip = data.terraform_remote_state.core_infrastructure.outputs.hydrogen_region.nat_instance.public_ip
alternative_rtp_ip = data.terraform_remote_state.core_infrastructure.outputs.hydrogen_region.nat_instance.public_ip
}


resource "aws_route53_record" "switch_legacy" {
zone_id = data.terraform_remote_state.core_infrastructure.outputs.route53_zone_internal_somleng_org_old.zone_id
name = "switch"
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/staging/public_gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module "public_gateway" {

app_image = data.terraform_remote_state.core.outputs.public_gateway_ecr_repository.repository_uri
scheduler_image = data.terraform_remote_state.core.outputs.opensips_scheduler_ecr_repository.repository_uri
min_tasks = 1
min_tasks = 0
max_tasks = 2

sip_port = var.sip_port
Expand Down

0 comments on commit 1d4c2c3

Please sign in to comment.