Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Dec 12, 2024
1 parent d1bde32 commit 067e80b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions emr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Postgres. This will fail if the prefix list does not exist.

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.66.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0 |

## Providers

Expand Down
14 changes: 7 additions & 7 deletions emr/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ resource "aws_vpc_security_group_egress_rule" "all" {
to_port = 0
ip_protocol = -1
# cidr_block = local.egress_networks
cidr_block = local.n_all
cidr_ipv4 = local.n_all[0]
}


Expand Down Expand Up @@ -158,13 +158,13 @@ resource "aws_vpc_security_group_ingress_rule" "security_group" {

# ingress: by cidr_block
resource "aws_vpc_security_group_ingress_rule" "cidr_block" {
for_each = { for x in local.sg_cb : x.cidr_label => x }
for_each = { for x in local.sg_cidr : x.cidr_label => x }

security_group_id = aws_security_group.sg[each.value.key].id
description = x.description
from_port = x.from
to_port = x.to
ip_protocol = x.protocol
cidr_block = x.cidr_block
description = each.value.description
from_port = each.value.from
to_port = each.value.to
ip_protocol = each.value.protocol
cidr_ipv4 = each.value.cidr_block
}

0 comments on commit 067e80b

Please sign in to comment.