-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom vpc_cidr_index variable to avoid VPC CIDR collisions with …
…multiple environments
- Loading branch information
Aaron Carlucci
committed
Nov 22, 2023
1 parent
6632d43
commit 7ceefa1
Showing
3 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
variable "aws_region" { | ||
default = "us-east-1" | ||
description = "The AWS region name in which the main infrastructure should be deployed" | ||
description = "The AWS region name in which the main infrastructure should be deployed." | ||
type = string | ||
} | ||
|
||
variable "aws_replication_region" { | ||
default = "us-west-2" | ||
description = "The AWS replication region where resources are provisioned for failover" | ||
description = "The AWS replication region where resources are provisioned for failover." | ||
type = string | ||
} | ||
|
||
variable "vpc_cidr_index" { | ||
default = 0 | ||
description = "The number of the second CIDR IP address segment to act as an index for multiple environment support. The default CIDR range is 10.0.0.0/16, so setting this to 1 would initialize the VPC to a CIDR range of 10.1.0.0/16. This is a negotiated stopgap solution to allow for the provisioning of multiple instances of the application in one region and avoid CIDR collisions." | ||
type = number | ||
} | ||
|
||
variable "environment" { | ||
description = "Name of the provisioned environment for namespacing purposes" | ||
description = "Name of the provisioned environment for namespacing purposes." | ||
type = string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters