Skip to content

Commit

Permalink
DNS entry for VM
Browse files Browse the repository at this point in the history
Should make ssh easier
  • Loading branch information
wawrzek committed Aug 5, 2024
1 parent f5195d2 commit ed4aa90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions devops/terraform/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ resource "aws_route53_record" "validation_test" {
zone_id = aws_route53_zone.test.zone_id
}

resource "aws_route53_record" "vm" {
zone_id = aws_route53_zone.test.zone_id
name = "vm.test.projectglove.io"
type = "A"
ttl = 300
records = [aws_instance.enclave.public_ip]
}

resource "aws_acm_certificate_validation" "test" {
certificate_arn = aws_acm_certificate.test.arn
validation_record_fqdns = [for record in aws_route53_record.validation_test : record.fqdn]
Expand Down

0 comments on commit ed4aa90

Please sign in to comment.