Skip to content

Commit

Permalink
update ois-scanner to use prefix list
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 16, 2023
1 parent 9b1d97d commit 516061a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
- it-windows-base
- update n_encase address

* 2.3.0 -- 2023-02-16
- ois-scanner
- update to use prefix list ois-scanner.base

# OLDER

## web
Expand Down
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 = "2.2.7"
_module_version = "2.3.0"
}
1 change: 1 addition & 0 deletions ois-scanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ No modules.
| Name | Type |
|------|------|
| [aws_security_group.this_security_group](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) | resource |
| [aws_ec2_managed_prefix_list.list](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ec2_managed_prefix_list) | data source |
| [aws_vpc.selected](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc) | data source |

## Inputs
Expand Down
8 changes: 8 additions & 0 deletions ois-scanner/data.prefix_lists.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
data "aws_ec2_managed_prefix_list" "list" {
# count = length(var.prefix_list_name) > 0 ? 1 : 0
filter {
name = "prefix-list-name"
# values = [var.prefix_list_name]
values = ["ois-scanner.base"]
}
}
3 changes: 2 additions & 1 deletion ois-scanner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ resource "aws_security_group" "this_security_group" {
from_port = 0
to_port = 0
protocol = -1
cidr_blocks = local.ipv4_cidr
# cidr_blocks = local.ipv4_cidr
prefix_list_ids = [data.aws_ec2_managed_prefix_list.list.id]
}

egress {
Expand Down

0 comments on commit 516061a

Please sign in to comment.