aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/digitalocean/domain/main.tf
blob: a5980ea2358d2b62b4dfc1150e36ce7f11a5477e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
resource "digitalocean_domain" "this" {
  name = var.name
}

resource "digitalocean_project_resources" "domain" {
  project   = var.project_id
  resources = [digitalocean_domain.this.urn]
}

resource "digitalocean_record" "a" {
  type   = "A"
  domain = digitalocean_domain.this.id
  value  = var.ip_address
  name   = "@"
  ttl    = 3600
}