-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
70 lines (60 loc) · 1.63 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
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0 */
# Variables that define project configuration
variable "region" {
description = "AWS Region."
type = string
default = "eu-west-1"
}
variable "project_name" {
description = "Name of the project."
type = string
default = "aws-hub-and-spoke-demo"
}
# Spoke VPCs
variable "spoke_vpcs" {
description = "Spoke VPCs definition."
type = any
default = {
"spoke-vpc-1" = {
cidr_block = "10.0.0.0/24"
workload_subnet_netmask = 28
endpoint_subnet_netmask = 28
tgw_subnet_netmask = 28
number_azs = 2
instance_type = "t2.micro"
flow_log_config = {
log_destination_type = "cloud-watch-logs"
retention_in_days = 7
}
}
"spoke-vpc-2" = {
cidr_block = "10.0.1.0/24"
workload_subnet_netmask = 28
endpoint_subnet_netmask = 28
tgw_subnet_netmask = 28
number_azs = 2
instance_type = "t2.micro"
flow_log_config = {
log_destination_type = "cloud-watch-logs"
retention_in_days = 7
}
}
}
}
# Inspection VPC
variable "inspection_vpc" {
description = "Inspection VPC definition."
type = any
default = {
cidr_block = "10.129.0.0/24"
public_subnet_netmask = 28
private_subnet_netmask = 28
tgw_subnet_netmask = 28
number_azs = 2
flow_log_config = {
log_destination_type = "cloud-watch-logs"
retention_in_days = 7
}
}
}