Skip to content

Commit

Permalink
Merge pull request #6 from senacor/tf-dns-setup
Browse files Browse the repository at this point in the history
DNS setup
  • Loading branch information
mg-sn authored Oct 23, 2024
2 parents 39153dc + fc0b6f3 commit 5a84b53
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scopes/application/03_setup_dns.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
data "google_dns_managed_zone" "lpt" {
name = "lpt"
}

resource "google_dns_record_set" "creditapplication-service" {
name = "creditapplication.api.lpt.senacor.com."
managed_zone = data.google_dns_managed_zone.lpt.name
type = "A"
ttl = 300
rrdatas = [google_compute_global_address.creditapplication_service_ingress_ip.address]
}

resource "google_compute_global_address" "creditapplication_service_ingress_ip" {
name = "creditapplication-service-public-ip"
}

0 comments on commit 5a84b53

Please sign in to comment.