Skip to content

Commit cfc9c10

Browse files
authored
Merge branch 'master' into mbarrien/ecs-placement
2 parents 1c1627c + f4e551e commit cfc9c10

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

aws-acm-cert/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ module "cert" {
4141
| owner | Owner for tagging and naming. See [doc](../README.md#consistent-tagging). | string | n/a | yes |
4242
| project | Project for tagging and naming. See [doc](../README.md#consistent-tagging) | string | n/a | yes |
4343
| service | Service for tagging and naming. See [doc](../README.md#consistent-tagging). | string | n/a | yes |
44+
| subject\_alternative\_names\_order | Order to list the subject alternative names in the ACM cert. Workaround for https://github.com/terraform-providers/terraform-provider-aws/issues/8531 | list(string) | `null` | no |
4445
| validation\_record\_ttl | | string | `"60"` | no |
4546

4647
## Outputs

aws-acm-cert/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ locals {
1212

1313
resource "aws_acm_certificate" "cert" {
1414
domain_name = "${var.cert_domain_name}"
15-
subject_alternative_names = "${keys(var.cert_subject_alternative_names)}"
15+
subject_alternative_names = var.subject_alternative_names_order == null ? keys(var.cert_subject_alternative_names) : var.subject_alternative_names_order
1616
validation_method = "DNS"
1717
tags = "${local.tags}"
1818

aws-acm-cert/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,9 @@ variable "allow_validation_record_overwrite" {
4343
description = "Allow the overwrite of validation records. This is needed if you are creating certificates in multiple regions."
4444
default = true
4545
}
46+
47+
variable "subject_alternative_names_order" {
48+
type = list(string)
49+
description = "Order to list the subject alternative names in the ACM cert. Workaround for https://github.com/terraform-providers/terraform-provider-aws/issues/8531"
50+
default = null
51+
}

0 commit comments

Comments
 (0)