forked from dannylinden/terraform-aws-website-serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
28 lines (23 loc) · 733 Bytes
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Create a variable for our domain name
variable "www_domain" {
description = "The domain of the Website, e.g www.example.org"
}
// We'll also need the root domain (also known as zone apex or naked domain).
variable "root_domain" {
description = "Root Domain level, e.g. example.org"
}
variable "ssl-validation" {
description = "How to validate the SSL Certificate? \"EMAIL\" or \"DNS\""
default = "EMAIL"
}
variable "bucket_prefix" {
description = "Prefix for S3 Buckets to handle already exist issues"
default = ""
}
variable "ssh_pub_key" {
type = "string"
description = "Path to your Public SSH Key. Used to authenticate the Git Repository"
}
locals {
domain_slug = "${replace(var.www_domain,".", "_")}"
}