Skip to content

Commit

Permalink
Revert infrastructure changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Sep 24, 2024
1 parent 19ccfdc commit 0ad2047
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 28 deletions.
15 changes: 0 additions & 15 deletions infrastructure/modules/public_gateway/health_checks.tf

This file was deleted.

1 change: 0 additions & 1 deletion infrastructure/modules/public_gateway/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ variable "db_host" {}
variable "db_port" {}
variable "global_accelerator" {}
variable "logs_bucket" {}
variable "services_function" {}

variable "opensips_fifo_name" {
default = "/var/opensips/opensips_fifo"
Expand Down
6 changes: 1 addition & 5 deletions infrastructure/modules/services/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ resource "aws_iam_policy" "custom_policy" {
{
Action = [
"ec2:DescribeInstances",
"ecs:DescribeContainerInstances",
"ecs:ListClusters",
"ecs:ListTasks",
"ecs:DescribeTasks",
"ecs:StopTask"
"ecs:DescribeContainerInstances"
]
Effect = "Allow"
Resource = [
Expand Down
2 changes: 0 additions & 2 deletions infrastructure/modules/services/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ resource "aws_lambda_function" "this" {

environment {
variables = {
PUBLIC_GATEWAY_LOG_GROUP = var.public_gateway_group
CLIENT_GATEWAY_LOG_GROUP = var.client_gateway_group
SWITCH_GROUP = "service:${var.switch_group}"
MEDIA_PROXY_GROUP = "service:${var.media_proxy_group}"
CLIENT_GATEWAY_GROUP = "service:${var.client_gateway_group}"
Expand Down
1 change: 0 additions & 1 deletion infrastructure/modules/services/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ variable "app_image" {}
variable "vpc" {}
variable "switch_group" {}
variable "media_proxy_group" {}
variable "public_gateway_group" {}
variable "client_gateway_group" {}
variable "db_password_parameter" {}
variable "freeswitch_event_socket_password_parameter" {}
Expand Down
5 changes: 2 additions & 3 deletions infrastructure/staging/public_gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ module "public_gateway" {

ecs_cluster = aws_ecs_cluster.this

app_image = data.terraform_remote_state.core.outputs.public_gateway_ecr_repository.this.repository_url
scheduler_image = data.terraform_remote_state.core.outputs.gateway_scheduler_ecr_repository.this.repository_url
services_function = module.services
app_image = data.terraform_remote_state.core.outputs.public_gateway_ecr_repository.this.repository_url
scheduler_image = data.terraform_remote_state.core.outputs.gateway_scheduler_ecr_repository.this.repository_url

min_tasks = 0
max_tasks = 2
Expand Down
1 change: 0 additions & 1 deletion infrastructure/staging/services.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module "services" {
app_environment = var.app_environment
switch_group = var.switch_identifier
media_proxy_group = var.media_proxy_identifier
public_gateway_group = var.public_gateway_identifier
client_gateway_group = var.client_gateway_identifier
public_gateway_db_name = var.public_gateway_db_name
client_gateway_db_name = var.client_gateway_db_name
Expand Down

0 comments on commit 0ad2047

Please sign in to comment.