From 924532a9fd3b1cdfe864e8e7b8c6b2c0fa93bfa4 Mon Sep 17 00:00:00 2001 From: Dmytro Melnychenko <51658169+bee7ch7@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:36:06 -0600 Subject: [PATCH] Add "self" to security group rule When using the same security group alongside an RDS proxy, it is required to have self references --- main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/main.tf b/main.tf index c82cdc4..9c8b756 100644 --- a/main.tf +++ b/main.tf @@ -355,6 +355,7 @@ resource "aws_security_group_rule" "this" { ipv6_cidr_blocks = try(each.value.ipv6_cidr_blocks, null) prefix_list_ids = try(each.value.prefix_list_ids, null) source_security_group_id = try(each.value.source_security_group_id, null) + self = try(each.value.self, null) } ################################################################################