Skip to content

Commit 5bb8e29

Browse files
author
rohit-ng
committed
chore: add header before start of module
1 parent d6592df commit 5bb8e29

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

main.tf

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
################################################################################
2+
# Postgres Security Group
3+
################################################################################
4+
15
module "postgres_security_group" {
26
source = "terraform-aws-modules/security-group/aws"
37
version = "~> 5.1.2"
@@ -23,6 +27,10 @@ module "postgres_security_group" {
2327
tags = local.default_tags
2428
}
2529

30+
################################################################################
31+
# RDS Kong
32+
################################################################################
33+
2634
module "kong_rds" {
2735
source = "terraform-aws-modules/rds/aws"
2836
version = "~> 6.7.0"
@@ -60,6 +68,10 @@ module "kong_rds" {
6068
tags = merge(local.default_tags, var.rds_db_tags)
6169
}
6270

71+
################################################################################
72+
# ECS Node Security Group
73+
################################################################################
74+
6375
module "ecs_node_security_group" {
6476
source = "terraform-aws-modules/security-group/aws"
6577
version = "~> 5.1.2"
@@ -82,6 +94,10 @@ module "ecs_node_security_group" {
8294
tags = local.default_tags
8395
}
8496

97+
################################################################################
98+
# Internal ALB Security Group
99+
################################################################################
100+
85101
module "internal_alb_security_group" {
86102
source = "terraform-aws-modules/security-group/aws"
87103
version = "~> 5.1.2"
@@ -104,6 +120,10 @@ module "internal_alb_security_group" {
104120
tags = local.default_tags
105121
}
106122

123+
################################################################################
124+
# Public ALB Security Group
125+
################################################################################
126+
107127
module "public_alb_security_group" {
108128
source = "terraform-aws-modules/security-group/aws"
109129
version = "~> 5.1.2"
@@ -129,6 +149,10 @@ module "public_alb_security_group" {
129149
tags = local.default_tags
130150
}
131151

152+
################################################################################
153+
# ECS Task Security Group
154+
################################################################################
155+
132156
module "ecs_task_security_group" {
133157
source = "terraform-aws-modules/security-group/aws"
134158
version = "~> 5.1.2"
@@ -153,6 +177,10 @@ module "ecs_task_security_group" {
153177
tags = local.default_tags
154178
}
155179

180+
################################################################################
181+
# ECS Kong
182+
################################################################################
183+
156184
module "ecs_kong" {
157185
source = "github.com/infraspecdev/terraform-aws-ecs-deployment?ref=v1.1.1"
158186
vpc_id = var.vpc_id
@@ -299,6 +327,10 @@ module "ecs_kong" {
299327
depends_on = [module.kong_rds]
300328
}
301329

330+
################################################################################
331+
# Internal ALB Kong
332+
################################################################################
333+
302334
module "internal_alb_kong" {
303335
source = "github.com/infraspecdev/terraform-aws-ecs-deployment//modules/alb?ref=v1.1.1"
304336
name = "${local.kong.name}-internal"
@@ -346,6 +378,10 @@ module "internal_alb_kong" {
346378
}
347379
}
348380

381+
################################################################################
382+
# Route53 Record For Public ALB
383+
################################################################################
384+
349385
module "kong_public_dns_record" {
350386
source = "./modules/route-53-record"
351387

@@ -355,6 +391,10 @@ module "kong_public_dns_record" {
355391
alb_zone_id = module.ecs_kong.alb_zone_id
356392
}
357393

394+
################################################################################
395+
# Route53 Record For Internal ALB
396+
################################################################################
397+
358398
module "kong_internal_dns_record" {
359399
source = "./modules/route-53-record"
360400

@@ -364,6 +404,10 @@ module "kong_internal_dns_record" {
364404
alb_zone_id = module.ecs_kong.alb_zone_id
365405
}
366406

407+
################################################################################
408+
# Self-hosted Github Runner
409+
################################################################################
410+
367411
module "github_runner" {
368412
source = "./modules/github-runner"
369413
vpc_id = var.vpc_id

0 commit comments

Comments
 (0)