Skip to content

scaleway-terraform-modules/terraform-scaleway-domain

Terraform / Scaleway

Purpose

This repository is used to manage a domain on scaleway using terraform. Beware this module can not be used to register a new domain. Existing domains must first be imported manually after initializing the terraform project. Refer to examples for more informations.

Usage

module "my_domain" {
  source  = "scaleway-terraform-modules/domain/scaleway"
  version = "1.0.2"

}

Requirements

Name Version
terraform >= 0.13
scaleway >= 2.40.0

Resources

Name Type
scaleway_domain_record.dkim resource
scaleway_domain_record.dmarc resource
scaleway_domain_record.mx resource
scaleway_domain_record.spf resource
scaleway_domain_zone.this resource
scaleway_tem_domain.this resource
scaleway_tem_domain_validation.this resource

Inputs

Name Description Type Default Required
domain Name of the domain to manage. string n/a yes
mx_servers Informations regarding MX servers. MX servers are required to enable Transactional Emails. list(object({ address = string priority = number })) [ { "address": "blackhole.scw-tem.cloud.", "priority": 10 } ] no
project_id ID of the project the domain is associated with. Ressource will be created in the project set at the provider level if null. string null no
setup_tem Whether to create a Transaction Email service. Beware that the service is only available in region fr-par at the moment. bool false no
subdomain Name of the subdomain to manage. string "" no

Outputs

Name Description
dns_zone DNS Zone of the domain.
tem_id ID of the Transaction Email Domain.
tem_reputation Reputation of the Transaction Email Domain.
tem_status Status of the Transaction Email Domain.
tem_validated Indicates if the domain has been verified for email sending.

Authors

Module is maintained with help from the community.

License

Mozilla Public License 2.0 Licensed. See LICENSE for full details.