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 c64f0de commit 9f42208
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions infrastructure/modules/public_gateway/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ resource "aws_ecs_service" "public_gateway" {
weight = 1
}

deployment_circuit_breaker {
enable = true
rollback = true
}

depends_on = [
aws_iam_role.task_role
]
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 = 0
min_tasks = 1
max_tasks = 2

sip_port = var.sip_port
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/staging/switch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ module "switch" {
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
}

module "switch_helium" {
Expand Down

0 comments on commit 9f42208

Please sign in to comment.