When creating a SSL Cert using Terraform it automatically assumes that emails it should be sent to are postmaster@[subdomain].[domain].com instead of doing postmaster@[domain].com. In AWS Certficate manager if I re-request the email validation it'll fix it but I need to be able to strictly do this via Terraform.
I couldn't find anything in any github issues on Terraform that looked like it could fix this issue.
resource "aws_acm_certificate" "aws_cert" {
domain_name = "${var.domain_name}"
validation_method = "${var.validation_method}"
subject_alternative_names = ["${var.subject_alternative_names}"]
tags = {
Name = "${var.environment}-${var.app_name}-aws-certificate"
ManagedBy = "My Terraform"
Environment = "${var.environment}"
Team = "vin-${var.team_name}"
}
lifecycle {
create_before_destroy = true
}
}