-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04_networking.auto.tfvars
More file actions
206 lines (159 loc) · 5.77 KB
/
Copy path04_networking.auto.tfvars
File metadata and controls
206 lines (159 loc) · 5.77 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
# Generated by Merlin Studio (https://site.merlin-studio.cloud). Licensed under CC BY-ND 4.0.
# ----------------------------------------------------------------------------
# COMPLIANCE FRAMEWORK UPGRADES
# The following values were automatically upgraded from their defaults to meet
# compliance framework requirements. User-explicit values were preserved.
# ----------------------------------------------------------------------------
# [CIS] cloud_dns.dnssec.enabled: <unset> -> True (CIS GCP 3.x — DNSSEC for DNS response integrity)
# ----------------------------------------------------------------------------
# ============================================================================
# VPC ARCHITECTURE
# ============================================================================
# Network architecture pattern
vpc_architecture = "standalone"
# ============================================================================
# VPC NETWORKS
# ============================================================================
vpc_networks = {
"vpc-main" = {
name = "vpc-main"
description = "Main VPC for all workloads"
project = "prj-shared-services"
purpose = "production"
routing_mode = "GLOBAL"
mtu = 1460
delete_default_routes = false
auto_create_subnetworks = false
}
}
# ============================================================================
# SUBNETS
# ============================================================================
subnets = {
"sb-main-europe-west1" = {
name = "sb-main-europe-west1"
vpc = "vpc-main"
region = "europe-west1"
ip_cidr_range = "10.0.0.0/24"
purpose = "general"
private_google_access = true
# VPC Flow Logs configuration
flow_logs = {
enabled = true
aggregation_interval = "INTERVAL_5_MIN"
flow_sampling = 0.5
metadata = "INCLUDE_ALL_METADATA"
}
secondary_ip_ranges = {}
}
}
# ============================================================================
# FIREWALL CONFIGURATION
# ============================================================================
# Firewall policy type
firewall_policy_type = "vpc_firewall_rules"
# Baseline firewall rules
firewall_rules = {
"allow-internal" = {
name = "allow-internal"
description = "Allow internal traffic"
direction = "INGRESS"
action = "allow"
priority = 1000
disabled = false
source_ranges = [
"10.0.0.0/8"
]
rules = [
{
protocol = "all"
}
]
},
"allow-iap" = {
name = "allow-iap"
description = "Allow IAP for SSH/RDP"
direction = "INGRESS"
action = "allow"
priority = 1000
disabled = false
source_ranges = [
"35.235.240.0/20"
]
rules = [
{
protocol = "tcp"
ports = [
"22",
"3389"
]
}
]
}
}
# ============================================================================
# CLOUD NAT
# Outbound internet access for private instances
# ============================================================================
cloud_nat = {
"nat-vpc-main-europe-west1" = {
name = "nat-vpc-main-europe-west1"
vpc = "vpc-main"
region = "europe-west1"
router_name = "router-vpc-main-europe-west1"
nat_ip_allocate_option = "AUTO_ONLY"
source_subnetwork_ip_ranges = "ALL_SUBNETWORKS_ALL_IP_RANGES"
min_ports_per_vm = 64
enable_logging = true
}
}
# ============================================================================
# CLOUD DNS
# Private DNS zones and configuration
# ============================================================================
cloud_dns = {
private_zones = {}
enable_dns_logging = false
# DNSSEC Policy (CIS GCP 3.3-3.5)
dnssec = {
enabled = true
key_algorithm = "ecdsap256sha256"
}
# DNS Forwarding
inbound_forwarding = false
# DNS Response Policy
}
# ============================================================================
# PRIVATE GOOGLE ACCESS
# Access to Google APIs from private instances
# ============================================================================
private_google_access = {
enable_private_google_access = true
private_service_connect = false
restricted_api_access = false
}
# ============================================================================
# VPC PEERING
# Connections between VPCs
# ============================================================================
# VPC peering not configured
# vpc_peering = {}
# ============================================================================
# SHARED VPC CONFIGURATION
# (Only applicable for shared_vpc architecture)
# ============================================================================
# ============================================================================
# DERIVED VALUES - Computed for reference
# ============================================================================
# VPC architecture type
# All VPC names
# All subnet CIDRs for IP planning reference
# Regions in use
# Hub VPC (for hub-spoke architecture)
# ============================================================================
# Next Steps:
# 1. Review IP addressing plan for conflicts with existing networks
# 2. Verify firewall rules align with security requirements
# 3. Configure Cloud NAT for regions requiring outbound internet access
# 4. Proceed to 05_hybrid_connectivity.tfvars for on-premises connectivity
# ============================================================================