Separates Into SubModules
This commit is contained in:
36
dns/dns.tf
Normal file
36
dns/dns.tf
Normal file
@@ -0,0 +1,36 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
godaddy = {
|
||||
source = "zaneatwork/godaddy"
|
||||
version = "1.9.10"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
variable "public_ip" {
|
||||
type = string
|
||||
}
|
||||
|
||||
|
||||
resource "godaddy_domain_record" "default" {
|
||||
domain = "hideyoshi.com.br"
|
||||
|
||||
overwrite = false
|
||||
|
||||
record {
|
||||
name = "staging "
|
||||
type = "A"
|
||||
data = "${var.public_ip}"
|
||||
ttl = 600
|
||||
priority = 0
|
||||
}
|
||||
|
||||
record {
|
||||
name = "api.staging "
|
||||
type = "A"
|
||||
data = "${var.public_ip}"
|
||||
ttl = 600
|
||||
priority = 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user