chore(infra): prevent destroy of the office VPC path (PLAT-77)

file-share will place its subnet in this VPC. A replace of the VPC, IGW, or office VPN would take that share down with the collector.
This commit is contained in:
Adam Moussa 2026-09-28 16:32:45 -04:00
parent 9f39bb3020
commit ce8dad22ea
No known key found for this signature in database

View file

@ -10,6 +10,12 @@ resource "aws_vpc" "this" {
tags = {
Name = "syslog-server-vpc"
}
# file-share (PLAT-77) places its subnet in this VPC. Replacing it takes
# that share down with the collector.
lifecycle {
prevent_destroy = true
}
}
resource "aws_internet_gateway" "this" {
@ -18,6 +24,10 @@ resource "aws_internet_gateway" "this" {
tags = {
Name = "syslog-server-igw"
}
lifecycle {
prevent_destroy = true
}
}
resource "aws_subnet" "public" {
@ -66,6 +76,10 @@ resource "aws_vpn_gateway" "office" {
tags = {
Name = "syslog-server-office"
}
lifecycle {
prevent_destroy = true
}
}
resource "aws_customer_gateway" "ronkonkoma" {
@ -87,6 +101,10 @@ resource "aws_vpn_connection" "office" {
tags = {
Name = "syslog-server-office"
}
lifecycle {
prevent_destroy = true
}
}
resource "aws_vpn_connection_route" "office_lans" {