summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-12-28 22:34:28 +0200
committerPaul Buetow <paul@buetow.org>2023-12-28 22:34:28 +0200
commit6fbb197fc400bab9b62bc2ee8c9e48f58ad783ae (patch)
tree014ce4ce47b0156309b1d8953c95f806012766da
parent084c9021f9a881388dde4cae7a48cf48a9af1635 (diff)
stop
-rw-r--r--org-buetow-base/outputs.tf6
-rw-r--r--org-buetow-base/zones.tf14
-rw-r--r--org-buetow-ecs/fluxpostgreservice.tf44
-rw-r--r--org-buetow-ecs/nginxservice.tf2
-rw-r--r--org-buetow-ecs/vaultservice.tf2
5 files changed, 34 insertions, 34 deletions
diff --git a/org-buetow-base/outputs.tf b/org-buetow-base/outputs.tf
index d182249..7a8df70 100644
--- a/org-buetow-base/outputs.tf
+++ b/org-buetow-base/outputs.tf
@@ -34,9 +34,9 @@ output "buetow_cloud_zone_id" {
value = data.aws_route53_zone.buetow_cloud.zone_id
}
-output "buetow_internal_zone_id" {
- value = aws_route53_zone.buetow_internal.zone_id
-}
+#output "buetow_internal_zone_id" {
+# value = aws_route53_zone.buetow_internal.zone_id
+#}
output "buetow_cloud_certificate_arn" {
value = "arn:aws:acm:eu-central-1:634617747016:certificate/fbf5627c-9a4c-4c62-9c33-038e140f3f12"
diff --git a/org-buetow-base/zones.tf b/org-buetow-base/zones.tf
index 1f47ff2..4f8d945 100644
--- a/org-buetow-base/zones.tf
+++ b/org-buetow-base/zones.tf
@@ -3,10 +3,10 @@ data "aws_route53_zone" "buetow_cloud" {
private_zone = false
}
-resource "aws_route53_zone" "buetow_internal" {
- name = "buetow.internal"
-
- vpc {
- vpc_id = aws_vpc.vpc.id
- }
-}
+#resource "aws_route53_zone" "buetow_internal" {
+# name = "buetow.internal"
+#
+# vpc {
+# vpc_id = aws_vpc.vpc.id
+# }
+#}
diff --git a/org-buetow-ecs/fluxpostgreservice.tf b/org-buetow-ecs/fluxpostgreservice.tf
index e6dd3c7..2d70e8f 100644
--- a/org-buetow-ecs/fluxpostgreservice.tf
+++ b/org-buetow-ecs/fluxpostgreservice.tf
@@ -36,29 +36,29 @@ resource "aws_lb_target_group" "fluxpostgres_tcp" {
target_type = "ip"
}
-resource "aws_route53_record" "a_record_fluxpostgres" {
- zone_id = data.terraform_remote_state.base.outputs.buetow_internal_zone_id
- name = "fluxpostgres.buetow.internal."
- type = "A"
-
- alias {
- name = aws_lb.fluxpostgres_nlb.dns_name
- zone_id = aws_lb.fluxpostgres_nlb.zone_id
- evaluate_target_health = true
- }
-}
-
-resource "aws_route53_record" "aaaa_record_fluxpostgres" {
- zone_id = data.terraform_remote_state.base.outputs.buetow_internal_zone_id
- name = "fluxpostgres.buetow.internal."
- type = "AAAA"
+#resource "aws_route53_record" "a_record_fluxpostgres" {
+# zone_id = data.terraform_remote_state.base.outputs.buetow_internal_zone_id
+# name = "fluxpostgres.buetow.internal."
+# type = "A"
+#
+# alias {
+# name = aws_lb.fluxpostgres_nlb.dns_name
+# zone_id = aws_lb.fluxpostgres_nlb.zone_id
+# evaluate_target_health = true
+# }
+#}
- alias {
- name = aws_lb.fluxpostgres_nlb.dns_name
- zone_id = aws_lb.fluxpostgres_nlb.zone_id
- evaluate_target_health = true
- }
-}
+#resource "aws_route53_record" "aaaa_record_fluxpostgres" {
+# zone_id = data.terraform_remote_state.base.outputs.buetow_internal_zone_id
+# name = "fluxpostgres.buetow.internal."
+# type = "AAAA"
+#
+# alias {
+# name = aws_lb.fluxpostgres_nlb.dns_name
+# zone_id = aws_lb.fluxpostgres_nlb.zone_id
+# evaluate_target_health = true
+# }
+#}
resource "aws_ecs_task_definition" "fluxpostgres" {
family = "fluxpostgres"
diff --git a/org-buetow-ecs/nginxservice.tf b/org-buetow-ecs/nginxservice.tf
index c092163..453ecb2 100644
--- a/org-buetow-ecs/nginxservice.tf
+++ b/org-buetow-ecs/nginxservice.tf
@@ -53,7 +53,7 @@ resource "aws_ecs_service" "nginx" {
cluster = aws_ecs_cluster.ecs_cluster.id
task_definition = aws_ecs_task_definition.nginx.arn
launch_type = "FARGATE"
- desired_count = 1
+ desired_count = 0
load_balancer {
target_group_arn = aws_lb_target_group.nginx_tg.arn
diff --git a/org-buetow-ecs/vaultservice.tf b/org-buetow-ecs/vaultservice.tf
index 2d1fcb1..b2707de 100644
--- a/org-buetow-ecs/vaultservice.tf
+++ b/org-buetow-ecs/vaultservice.tf
@@ -70,7 +70,7 @@ resource "aws_ecs_service" "vault" {
launch_type = "FARGATE"
deployment_maximum_percent = 100
deployment_minimum_healthy_percent = 0
- desired_count = 1
+ desired_count = 0
load_balancer {
target_group_arn = aws_lb_target_group.vault_tg.arn