Fix domain setup to include existing domain contact

This commit is contained in:
2023-10-30 21:09:15 +01:00
parent dc48644181
commit 3f467433a0
2 changed files with 9 additions and 17 deletions
+5
View File
@@ -7,3 +7,8 @@ import {
to = inwx_domain.twomartens_eu
id = "2martens.eu"
}
import {
to = inwx_domain_contact.admin
id = "73763"
}
+4 -17
View File
@@ -31,19 +31,6 @@ resource "inwx_domain_contact" "admin" {
email = var.admin_email
}
resource "inwx_domain_contact" "inwx" {
// contact configuration
type = "ROLE"
name = "Hostmaster Of The Day"
organization = "INWX GmbH"
street_address = "Prinzessinnenstr. 30"
city = "Berlin"
postal_code = "10969"
country_code = "DE"
phone_number = "+49.309832120"
email = "hostmaster@inwx.de"
}
resource "inwx_domain" "twomartens_de" {
name = "2martens.de"
nameservers = [
@@ -58,8 +45,8 @@ resource "inwx_domain" "twomartens_de" {
// references to terraform managed contact "example_person"
registrant = inwx_domain_contact.admin.id
admin = inwx_domain_contact.admin.id
tech = inwx_domain_contact.inwx.id
billing = inwx_domain_contact.inwx.id
tech = 1
billing = 1
}
}
@@ -77,8 +64,8 @@ resource "inwx_domain" "twomartens_eu" {
// references to terraform managed contact "example_person"
registrant = inwx_domain_contact.admin.id
admin = inwx_domain_contact.admin.id
tech = inwx_domain_contact.inwx.id
billing = inwx_domain_contact.inwx.id
tech = 1
billing = 1
}
extra_data = {
"EU-COUNTRY-OF-CITIZENSHIP": "DE"