-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.17: add variables from it-windows-base
- Loading branch information
Showing
4 changed files
with
88 additions
and
11 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| # v1.16 -- 20200604 | ||
|
|
||
| * add version number, update tags | ||
|
|
||
| # v1.17 -- 20200731 | ||
|
|
||
| * add variables from [it-windows-base](../it-windows-base) |
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,19 +1,83 @@ | ||
| #--- | ||
| # change between different modules as needed | ||
| #--- | ||
| variable "name" { | ||
| description = "Security Group Name" | ||
| type = string | ||
| default = "ois-scanner" | ||
| } | ||
|
|
||
| variable "description" { | ||
| description = "Security Group Description" | ||
| type = string | ||
| default = "OIS Scanner Security Group" | ||
| } | ||
|
|
||
| variable "short_description" { | ||
| description = "Security Group Short Description" | ||
| type = string | ||
| default = "OIS" | ||
| } | ||
|
|
||
| variable "enable_self" { | ||
| description = "Enable|Disable self full access" | ||
| type = bool | ||
| default = false | ||
| } | ||
|
|
||
| variable "use_vpc_cidr" { | ||
| description = "Enable|Disable use of VPC CIDR block in the ingress_networks" | ||
| type = bool | ||
| default = false | ||
| } | ||
|
|
||
| #--- | ||
| # others with defaults | ||
| #--- | ||
| variable "vpc_id" { | ||
| description = "VPC ID Number" | ||
| type = string | ||
| } | ||
|
|
||
| variable "name" { | ||
| description = "Security group Name" | ||
| default = "ois-scanner" | ||
| data "aws_vpc" "selected" { | ||
| id = "${var.vpc_id}" | ||
| } | ||
|
|
||
| variable "vpc_full_name" { | ||
| description = "VPC Name" | ||
| type = string | ||
| default = "" | ||
| } | ||
|
|
||
| variable "ingress_networks" { | ||
| description = "List of ingress networks for external access (not all ports)" | ||
| type = list(string) | ||
| default = ["0.0.0.0/0"] | ||
| } | ||
|
|
||
| variable "egress_networks" { | ||
| description = "List of egress networks (all ports)" | ||
| type = list(string) | ||
| default = ["0.0.0.0/0"] | ||
| } | ||
|
|
||
| variable "ingress_security_groups" { | ||
| description = "List of ingress security groups for all ports" | ||
| type = list(string) | ||
| default = [] | ||
| } | ||
|
|
||
| variable "egress_security_groups" { | ||
| description = "List of egress security groups (all ports)" | ||
| type = list(string) | ||
| default = [] | ||
| } | ||
|
|
||
| variable "tags" { | ||
| description = "Extra security group tags" | ||
|
|
||
| type = map(string) | ||
| type = map | ||
| default = { | ||
| "CostAllocation" = "csvd:infrastructure" | ||
| "Environment" = "csvd-infrastructure" | ||
| } | ||
| } | ||
|
|
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,5 +1,5 @@ | ||
| variable "_module_version" { | ||
| description = "Module version number" | ||
| type = string | ||
| default = "1.16" | ||
| default = "1.17" | ||
| } |