forked from spotify/terraform-google-aws-hybrid-cloud-vpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
63 lines (55 loc) · 2.16 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
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
variable "transit_gateway_id" {
type = string
description = "AWS Transit Gateway ID"
}
variable "google_network" {
type = string
default = "default"
description = "Google VPN Network name, can be either a name or a self_link"
}
variable "amazon_side_asn" {
type = number
default = 64512
description = "BGP ASN Number for the AWS side of the VPN"
}
variable "aws_vpn_configs" {
type = map(any)
description = "AWS Tunnels Configs for aws_vpn_connection. This addresses this [known issue](https://cloud.google.com/network-connectivity/docs/vpn/how-to/creating-ha-vpn)."
default = {
encryption_algorithms = ["AES256"]
integrity_algorithms = ["SHA2-256"]
dh_group_numbers = ["18"]
}
}
variable "google_side_asn" {
type = number
default = 65534
description = "BGP ASN Number for the Google side of the VPN"
}
variable "suffix" {
type = string
default = "null"
description = "String to identify groups resources created by this module. This allow the module to be called multiple times in the same GCP Project and AWS account. dev/staging/prod are examples inputs. If not passed a 10 character random string will be assigned"
}
variable "router_advertise_config" {
description = "Router custom advertisement configuration, ip_ranges is a map of address ranges and descriptions. More info can be found here https://www.terraform.io/docs/providers/google/r/compute_router.html#bgp (Default: null)"
default = null
type = object({
groups = list(string)
ip_ranges = map(string)
mode = string
})
}