Skip to content

Commit dfe5447

Browse files
authored
feat: Add certificate transparency log option to ACM (terraform-aws-modules#18)
1 parent dc9a2b1 commit dfe5447

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ module "acm" {
6868

6969
| Name | Description | Type | Default | Required |
7070
|------|-------------|:----:|:-----:|:-----:|
71+
| certificate\_transparency\_logging\_preference | Specifies whether certificate details should be added to a certificate transparency log | bool | `"false"` | no |
7172
| create\_certificate | Whether to create ACM certificate | bool | `"true"` | no |
7273
| domain\_name | A domain name for which the certificate should be issued | string | `""` | no |
7374
| subject\_alternative\_names | A list of domains that should be SANs in the issued certificate | list(string) | `[]` | no |

Diff for: main.tf

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ resource "aws_acm_certificate" "this" {
1212
domain_name = var.domain_name
1313
subject_alternative_names = var.subject_alternative_names
1414
validation_method = var.validation_method
15+
options = {
16+
certificate_transparency_logging_preference = var.certificate_transparency_logging_preference ? "ENABLED" : "DISABLED"
17+
}
18+
1519

1620
tags = var.tags
1721

Diff for: variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ variable "wait_for_validation" {
2222
default = true
2323
}
2424

25+
variable "certificate_transparency_logging_preference" {
26+
description = "Specifies whether certificate details should be added to a certificate transparency log"
27+
type = bool
28+
default = false
29+
}
30+
2531
variable "domain_name" {
2632
description = "A domain name for which the certificate should be issued"
2733
type = string

0 commit comments

Comments
 (0)