Skip to content

Commit

Permalink
edit: clean up variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ghannay10 committed Apr 17, 2024
1 parent 39e8a1c commit 04d113e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion infrastructure/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module "ecs" {
ecr_repository_uri = var.ecr_repository_uri
ecs_cluster_id = data.terraform_remote_state.platform.outputs.ecs_cluster_id
health_check = local.health_check
target_group_id = aws_lb_target_group.target_group.id
target_group_arn = aws_lb_target_group.target_group.arn
environment_variables = {
"ENVIRONMENT" = terraform.workspace,
Expand Down
20 changes: 9 additions & 11 deletions infrastructure/load_balancer.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
module "load_balancer" {
source = "../../i-ai-core-infrastructure/modules/load_balancer"
project = var.project_name
region = var.region
state_bucket = var.state_bucket
account_id = var.account_id
vpc_id = data.terraform_remote_state.vpc.outputs.vpc_id
public_subnets = data.terraform_remote_state.vpc.outputs.public_subnets
certificate_arn = data.terraform_remote_state.universal.outputs.certificate_arn
ip_whitelist = concat(var.internal_ips, var.developer_ips, var.external_ips)
env = var.env
target_group_arn = aws_lb_target_group.target_group.arn
source = "../../i-ai-core-infrastructure/modules/load_balancer"
project = var.project_name
region = var.region
state_bucket = var.state_bucket
account_id = var.account_id
vpc_id = data.terraform_remote_state.vpc.outputs.vpc_id
public_subnets = data.terraform_remote_state.vpc.outputs.public_subnets
ip_whitelist = concat(var.internal_ips, var.developer_ips, var.external_ips)
env = var.env
}

0 comments on commit 04d113e

Please sign in to comment.