Skip to content

Commit

Permalink
Move the fqdm of a service under the api zone (#18)
Browse files Browse the repository at this point in the history
This was we have better separation and avoid any potential name clashes.
  • Loading branch information
hellais authored Mar 14, 2024
1 parent 1beb0d2 commit d68d870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tf/modules/ooniapi_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ resource "aws_alb_listener" "front_end_https" {

resource "aws_route53_record" "ooniapi_service" {
zone_id = var.dns_zone_ooni_io
name = "${var.service_name}.${var.stage}.ooni.io"
name = "${var.service_name}.api.${var.stage}.ooni.io"
type = "A"

alias {
Expand All @@ -179,7 +179,7 @@ resource "aws_route53_record" "ooniapi_service" {
}

resource "aws_acm_certificate" "ooniapi_service" {
domain_name = "${var.service_name}.${var.stage}.ooni.io"
domain_name = "${var.service_name}.api.${var.stage}.ooni.io"
validation_method = "DNS"

tags = var.tags
Expand Down

0 comments on commit d68d870

Please sign in to comment.