1 2 3 4 5 6 7 8 9 10 11 |
resource "aws_acm_certificate" "acm" { domain_name = "example.com" validation_method = "DNS" options { certificate_transparency_logging_preference = "ENABLED" } } resource "aws_acm_certificate_validation" "acm_validation" { certificate_arn = aws_acm_certificate.acm.arn validation_record_fqdns = ["${aws_route53_record.cert_validation.fqdn}"] } |
複数ドメインを1つのACMに設定する場合(CloudFront+ACMの場合)
1 2 3 4 5 6 7 8 |
resource "aws_acm_certificate" "acm" { domain_name = "example1.com" subject_alternative_names = "example2.com" validation_method = "DNS" options { certificate_transparency_logging_preference = "ENABLED" } } |