Skip to content

Commit

Permalink
Merge pull request #2 from dasmeta/DMVP-1338-multidomain
Browse files Browse the repository at this point in the history
DMVP-1338: Modified zones and aliases to support multiple domai…
  • Loading branch information
VahagnMian authored Oct 24, 2022
2 parents 0bc43cf + 4a5abe4 commit 2e51345
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cdn.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

module "cdn" {
source = "dasmeta/modules/aws//modules/cloudfront-ssl-hsts"
version = "0.36.7"
version = "1.1.2"

zone = [var.zone]
aliases = [var.domain]
zone = concat([var.zone], var.alternative_zones)
aliases = concat([var.domain], var.alternative_domains)
comment = "cdn for ${var.domain}"
web_acl_id = try(module.waf[0].web_acl_arn, null)

Expand Down
12 changes: 11 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
variable "domain" {
type = list(string)
type = string
description = "domain full name"
}

variable "alternative_domains" {
type = list(string)
default = []
}

variable "alternative_zones" {
type = list(string)
default = []
}

variable "zone" {
type = string
default = null
Expand Down

0 comments on commit 2e51345

Please sign in to comment.