Skip to content

Commit

Permalink
v1.3.0: peer: add peer_network_acl_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 20, 2021
1 parent 8a1c291 commit 058a027
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .tflint.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ rule "aws_instance_invalid_type" {
plugin "aws" {
enabled = true
}

rule "terraform_module_pinned_source" {
enabled = false
# style = "flexible"
# default_branches = ["dev"]
}

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@
* v1.2.0 -- 20211019
- vpn
- add create variable to create/not-create the resources

* v1.3.0 -- 20211020
- peer
- add peer_network_acl_filter
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "1.2.0"
_module_version = "1.3.0"
}
1 change: 1 addition & 0 deletions peer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ No requirements.
| <a name="input_override_prefixes"></a> [override\_prefixes](#input\_override\_prefixes) | Override built-in prefixes by component. This should be used primarily for common infrastructure things | `map(string)` | `{}` | no |
| <a name="input_peer_account_alias"></a> [peer\_account\_alias](#input\_peer\_account\_alias) | Peer AWS Account Alias | `string` | `""` | no |
| <a name="input_peer_account_id"></a> [peer\_account\_id](#input\_peer\_account\_id) | Peer AWS Account ID | `string` | `""` | no |
| <a name="input_peer_network_acl_filter"></a> [peer\_network\_acl\_filter](#input\_peer\_network\_acl\_filter) | Peer VPC Network ACL filter list | `list(string)` | `[]` | no |
| <a name="input_peer_network_acl_ids"></a> [peer\_network\_acl\_ids](#input\_peer\_network\_acl\_ids) | Peer VPC Network ACL IDs | `list(string)` | `[]` | no |
| <a name="input_peer_route_table_filter"></a> [peer\_route\_table\_filter](#input\_peer\_route\_table\_filter) | Peer VPC route table search filter list (default: services) | `list(string)` | <pre>[<br> "route-*-services",<br> "route-*-services-private*"<br>]</pre> | no |
| <a name="input_peer_route_table_ids"></a> [peer\_route\_table\_ids](#input\_peer\_route\_table\_ids) | Peer VPC route table IDs (default: all *private* route tables at peer VPC) | `list(string)` | `[]` | no |
Expand Down
8 changes: 8 additions & 0 deletions peer/data.peer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ data "aws_network_acls" "default_peer_network_acls" {
name = "association.subnet-id"
values = local.peer_subnets
}
dynamic "filter" {
for_each = length(var.peer_network_acl_filter) > 0 ? toset({ 1 = 1 }) : toset({})
iterator = f
content {
name = "tag:Name"
values = var.peer_network_acl_filter
}
}
}

data "aws_subnet" "peer_subnets" {
Expand Down
6 changes: 6 additions & 0 deletions peer/variables.peer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ variable "peer_network_acl_ids" {
default = []
}

variable "peer_network_acl_filter" {
description = "Peer VPC Network ACL filter list"
type = list(string)
default = []
}

variable "peer_rule_number" {
description = "Peer Starting rule number within the rule"
type = number
Expand Down

0 comments on commit 058a027

Please sign in to comment.