@@ -19,58 +19,58 @@ resource "aws_iam_role_policy_attachment" "ecs_task_execution_role_attach" {
1919# ###############################################################################
2020
2121# Backend Prod
22- module "python_backend_prod" {
23- source = " ./python_backend"
22+ # module "python_backend_prod" {
23+ # source = "./python_backend"
2424
25- env = " prod"
26- vpc_id = data. aws_vpc . use2 . id
27- logs_group = aws_cloudwatch_log_group. ecslogs . name
28- ecs_cluster_id = module. ecs . cluster_id
29- task_execution_role = data. aws_iam_role . ecs_task_execution_role . arn
30- image_tag = " master"
31- }
25+ # env = "prod"
26+ # vpc_id = data.aws_vpc.use2.id
27+ # logs_group = aws_cloudwatch_log_group.ecslogs.name
28+ # ecs_cluster_id = module.ecs.cluster_id
29+ # task_execution_role = data.aws_iam_role.ecs_task_execution_role.arn
30+ # image_tag = "master"
31+ # }
3232
33- resource "aws_lb_listener_rule" "python_backend_prod" {
34- listener_arn = aws_lb_listener. default_https . arn
33+ # resource "aws_lb_listener_rule" "python_backend_prod" {
34+ # listener_arn = aws_lb_listener.default_https.arn
3535
36- action {
37- type = " forward"
38- target_group_arn = module. python_backend_prod . lb_tg_arn
39- }
36+ # action {
37+ # type = "forward"
38+ # target_group_arn = module.python_backend_prod.lb_tg_arn
39+ # }
4040
41- condition {
42- host_header {
43- values = [" backend.operationcode.org" , " api.operationcode.org" ]
44- }
45- }
46- }
41+ # condition {
42+ # host_header {
43+ # values = ["backend.operationcode.org", "api.operationcode.org"]
44+ # }
45+ # }
46+ # }
4747
4848# Backend Staging
49- module "python_backend_staging" {
50- source = " ./python_backend"
49+ # module "python_backend_staging" {
50+ # source = "./python_backend"
5151
52- env = " staging"
53- vpc_id = data. aws_vpc . use2 . id
54- logs_group = aws_cloudwatch_log_group. ecslogs . name
55- ecs_cluster_id = module. ecs . cluster_id
56- task_execution_role = data. aws_iam_role . ecs_task_execution_role . arn
57- image_tag = " staging"
58- }
52+ # env = "staging"
53+ # vpc_id = data.aws_vpc.use2.id
54+ # logs_group = aws_cloudwatch_log_group.ecslogs.name
55+ # ecs_cluster_id = module.ecs.cluster_id
56+ # task_execution_role = data.aws_iam_role.ecs_task_execution_role.arn
57+ # image_tag = "staging"
58+ # }
5959
60- resource "aws_lb_listener_rule" "python_backend_staging" {
61- listener_arn = aws_lb_listener. default_https . arn
60+ # resource "aws_lb_listener_rule" "python_backend_staging" {
61+ # listener_arn = aws_lb_listener.default_https.arn
6262
63- action {
64- type = " forward"
65- target_group_arn = module. python_backend_staging . lb_tg_arn
66- }
63+ # action {
64+ # type = "forward"
65+ # target_group_arn = module.python_backend_staging.lb_tg_arn
66+ # }
6767
68- condition {
69- host_header {
70- values = [" backend-staging.operationcode.org" , " api.staging.operationcode.org" ]
71- }
72- }
73- }
68+ # condition {
69+ # host_header {
70+ # values = ["backend-staging.operationcode.org", "api.staging.operationcode.org"]
71+ # }
72+ # }
73+ # }
7474
7575# Redirector for shut down sites
7676resource "aws_lb_listener_rule" "shutdown_sites_redirector" {
@@ -91,9 +91,10 @@ resource "aws_lb_listener_rule" "shutdown_sites_redirector" {
9191 host_header {
9292 values = [
9393 " resources.operationcode.org" ,
94- " resources.staging.operationcode.org" ,
9594 " resources-staging.operationcode.org" ,
96- " pybot.staging.operationcode.org" ,
95+ " api.operationcode.org" ,
96+ " backend-staging.operationcode.org" ,
97+ " api.staging.operationcode.org" ,
9798 ]
9899 }
99100 }
0 commit comments