Skip to content

Commit

Permalink
update dns
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 5, 2022
1 parent 8594f79 commit 02fd840
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions examples/dice-mojo/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,3 @@ resource "aws_route53_record" "app" {
ttl = "900"
records = [aws_lb.app.dns_name]
}

# # add certificate creation with dns name
# resource "aws_acm_certificate" "app" {
# domain_name = local.app_alb_dns_name
# validation_method = "DNS"
#
# tags = merge(
# local.common_tags,
# var.application_tags,
# local.base_tags,
# )
#
# lifecycle {
# create_before_destroy = true
# }
# }

# # domain validation
# resource "aws_route53_record" "app_validate" {
# for_each = {
# for dvo in aws_acm_certificate.app.domain_validation_options : dvo.domain_name => {
# name = dvo.resource_record_name
# record = dvo.resource_record_value
# type = dvo.resource_record_type
# }
# }
#
# allow_overwrite = true
# name = each.value.name
# records = [each.value.record]
# ttl = 60
# type = each.value.type
# zone_id = local.app_dns_zone_id
# }

# resource "aws_acm_certificate_validation" "app" {
# certificate_arn = aws_acm_certificate.app.arn
# validation_record_fqdns = [for record in aws_route53_record.app_validate: record.fqdn]
# }

0 comments on commit 02fd840

Please sign in to comment.