You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add support for multiple domains
- add support for 404 error fallbacks
- enforce validation rules on variables
- update outputs format
- update readme
Copy file name to clipboardExpand all lines: static-site/variables.tf
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,13 @@ variable "hosted_zone" {
10
10
default=""
11
11
}
12
12
13
-
variable"domain_name" {
14
-
type=string
15
-
description="The custom domain name for your CloudFront distribution"
13
+
variable"domains" {
14
+
type=list(string)
15
+
description="List of custom domain names for your CloudFront distribution. The first domain specified will be classed as the primary domain (used as S3 bucket name, Route53 hosted zone name etc.)"
16
+
validation {
17
+
condition=length(var.domains) >0
18
+
error_message="domains requires at least one domain to be specified"
0 commit comments