-
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.
- custom
- change the data resources for ingress and egress SG list to not try to look them up to get names if they
include a /, like for ACCOUNT/SGID for a referenced SG
- use the actual passed value in the name if it is a referenced SG- Loading branch information
Showing
4 changed files
with
29 additions
and
4 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,3 +1,3 @@ | ||
| locals { | ||
| _module_version = "2.8.1" | ||
| _module_version = "2.9.0" | ||
| } |
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 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,18 @@ | ||
| 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) | ||
| for_each = [for sg in var.ingress_security_groups : sg if !stringcontains(sg, "/")] | ||
| id = each.key | ||
| } | ||
|
|
||
| data "aws_security_group" "egress_security_groups" { | ||
| # count = length(var.egress_security_groups) | ||
| # id = element(var.egress_security_groups, count.index) | ||
| for_each = [for sg in var.egress_security_groups : sg if !stringcontains(sg, "/")] | ||
| id = each.key | ||
| } |