Refactor DNS records and local variables; replace data source with local values for Contabo instance and add IMAP/SMTP CNAME records

This commit is contained in:
2025-03-15 22:51:05 +01:00
parent afe0a1010d
commit 52b1649c3e
5 changed files with 63 additions and 80 deletions
+11 -10
View File
@@ -6,10 +6,11 @@ terraform {
source = "scaleway/scaleway"
version = "~>2.13"
}
contabo = {
source = "contabo/contabo"
version = "0.1.26"
}
# Contabo provider is not working for now, so we can't use it
# contabo = {
# source = "contabo/contabo"
# version = "0.1.26"
# }
cloudns = {
source = "ClouDNS/cloudns"
version = "~>1.0"
@@ -32,9 +33,9 @@ provider "scaleway" {
# Configure your Contabo API credentials
provider "contabo" {
oauth2_client_id = var.contabo_client_id
oauth2_client_secret = var.contabo_client_secret
oauth2_user = var.contabo_api_user
oauth2_pass = var.contabo_api_password
}
# provider "contabo" {
# oauth2_client_id = var.contabo_client_id
# oauth2_client_secret = var.contabo_client_secret
# oauth2_user = var.contabo_api_user
# oauth2_pass = var.contabo_api_password
# }