Requests a certificate from the Amazon Certificate Manager.
# :warning: MUST be created and manually validated before any depending resources
module "certificate" {
source = "github.com/dbl-works/terraform//certificate?ref=v2021.07.05"
project = "someproject"
environment = "staging"
domain_name = "my-domain.com"
# Optional
add_wildcard_subdomains = true
alternative_domains = [
"www.example.com",
"another.domain.co.uk",
]
}
Setting add_wildcard_subdomains
to false
will omit creating a wild-card certificate for subdomains, i.e. *.${domain-name}
.
You might want to user a more recent ref
.
domain_validation_information
, used to validate DNS recordsarn