-
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.
v2.1.0: refactor and use sas as the first common module
- Loading branch information
Showing
25 changed files
with
400 additions
and
171 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,6 +1,20 @@ | ||
| # CHANGELOG | ||
|
|
||
| # v2.0.0 -- 20210528 | ||
| * v2.0.0 -- 20210528 | ||
| - create a common set of files to not replicate the logic | ||
| - consolidate all the submodules to use the common structure | ||
|
|
||
| * v2.1.0 -- 20211021 | ||
| - sas | ||
| - add sas submodule, which can be used for a general module or a specific application module | ||
|
|
||
| ## web | ||
|
|
||
| * v1.0.0 -- 20210604 | ||
| - add module version, update tags | ||
|
|
||
| * v1.1.0 -- 20210915 | ||
| - enable use of ingress_networks and egress_networks for pre-defined port list | ||
|
|
||
| * v1.1.1 -- 20210929 | ||
| - fix default egress to be 0/0 for web submodule |
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
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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| data "aws_vpc" "this_vpc" { | ||
| count = var.use_vpc_cidr ? 1 : 0 | ||
| id = var.vpc_id | ||
| } | ||
|
|
||
| data "aws_security_group" "ingress_security_groups" { | ||
| count = length(var.ingress_security_groups) | ||
| id = element(var.ingress_security_groups, count.index) | ||
| } | ||
|
|
||
| data "aws_security_group" "egress_security_groups" { | ||
| count = length(var.egress_security_groups) | ||
| id = element(var.egress_security_groups, count.index) | ||
| } |
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
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 |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| 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 | ||
| } | ||
|
|
||
| variable "ingress_networks" { | ||
| description = "List of ingress networks for access (with all pre-defined ingress ports)" | ||
| type = list(string) | ||
| default = [] | ||
| } | ||
|
|
||
| variable "egress_networks" { | ||
| description = "List of egress networks (with all pre-defined egress ports)" | ||
| type = list(string) | ||
| default = [] | ||
| } | ||
|
|
||
| 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 | ||
| default = {} | ||
| } |
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # copy this file, and replace it with the appropriate defaults for a module | ||
|
|
||
| variable "name" { | ||
| description = "Security Group Name" | ||
| type = string | ||
| # default = "REPLACE" | ||
| } | ||
|
|
||
| variable "description" { | ||
| description = "Security Group Description" | ||
| type = string | ||
| # default = "REPLACE" | ||
| } | ||
|
|
||
| variable "short_description" { | ||
| description = "Security Group Short Description" | ||
| type = string | ||
| # default = "REPLACE" | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| variable "vpc_id" { | ||
| description = "VPC ID Number" | ||
| type = string | ||
| } | ||
|
|
||
| variable "vpc_full_name" { | ||
| description = "VPC Name" | ||
| type = string | ||
| default = "" | ||
| } | ||
|
|
||
|
|
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,3 @@ | ||
| locals { | ||
| _module_version = "2.0.0" | ||
| _module_version = "2.1.0" | ||
| } |
Oops, something went wrong.