Skip to content

Commit

Permalink
tf root cert
Browse files Browse the repository at this point in the history
  • Loading branch information
seplee committed Apr 20, 2024
1 parent 11985a8 commit a409d0b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions _infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ resource "aws_apprunner_custom_domain_association" "this" {
service_arn = aws_apprunner_service.this.arn
}

# this block directs traffic from custom domain to apprunner service
# resource "aws_route53_record" "api" {
# name = "${data.aws_route53_zone.main.name}"
# zone_id = data.aws_route53_zone.main.id
# type = "A"

# alias {
# name = aws_apprunner_custom_domain_association.dns_target # aws_apprunner_service.this.service_url
# zone_id = aws_apprunner_service.this.zone_id
# evaluate_target_health = true
# }

# }

# this resources creates certificate validation records
resource "aws_route53_record" "app_runner" {
count = length(aws_apprunner_custom_domain_association.this.certificate_validation_records)

Expand Down

0 comments on commit a409d0b

Please sign in to comment.