Add DNS (with DO)
This commit is contained in:
parent
386a530251
commit
524ac475e0
1 changed files with 21 additions and 0 deletions
21
dns.tf
Normal file
21
dns.tf
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
digitalocean = {
|
||||
source = "digitalocean/digitalocean"
|
||||
version = "~> 2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
variable "do_token" {}
|
||||
|
||||
provider "digitalocean" {
|
||||
token = var.do_token
|
||||
}
|
||||
|
||||
resource "digitalocean_record" "jam" {
|
||||
domain = "vereto.net"
|
||||
type = "A"
|
||||
name = "ejam"
|
||||
value = "${aws_instance.jamulus.public_ip}"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue