-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
83 lines (68 loc) · 1.8 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
variable "create_vpc" {
type = bool
default = false
description = "Toggle to enable / disable VPC creation"
}
variable "profile" {
type = string
description = "AWS Credentials Profile to use"
default = "default"
}
variable "region" {
type = string
default = "us-east-1"
description = "This is the AWS region."
}
variable "tags_carrier_gw" {
type = map(string)
description = "Carrier Gateway Tags"
default = {
name = "carrierGateway"
}
}
variable "tags_wavelength" {
type = map(string)
description = "default Tags"
default = {
purpose = "Wavelength"
terraformManaged = true
}
}
variable "tags_wlz_route_table" {
type = map(string)
description = "Wavelength Zone Route Table Tags"
default = {
name = "routeTable"
}
}
variable "tags_wlz_securitygroup" {
type = map(string)
description = "Wavelength Zone security group Tags"
default = {
name = "wlzSecurityGroup"
}
}
variable "tags_wlz_subnet" {
type = map(string)
description = "Additional tags for the module created subnet"
default = {
type = "wlzSubnet"
}
}
variable "vpc_id" {
type = string
description = "The id of the specific pre-existing VPC to retrieve."
default = ""
}
variable "wlz_cidr_block" {
type = string
description = "The CIDR block for the Wavelength Zone"
default = "10.1.4.0/24"
}
locals {
# see https://www.terraform.io/docs/language/functions/merge.html
tags_carrier_gw = merge(var.tags_wavelength, var.tags_carrier_gw)
//tags_wlz_route_table = merge(var.tags_wavelength, var.tags_wlz_route_table)
tags_wlz_securitygroup = merge(var.tags_wavelength, var.tags_wlz_securitygroup)
tags_wlz_subnet = merge(var.tags_wavelength, var.tags_wlz_subnet)
}