mirror of
https://github.com/Sea-Haven-Industries/syslog-server.git
synced 2026-09-30 05:23:16 +00:00
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:
parent
9f39bb3020
commit
ce8dad22ea
1 changed files with 18 additions and 0 deletions
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue