Skip to content

Commit 5afa22e

Browse files
committed
add example for the "self" rule
1 parent d8e90e2 commit 5afa22e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/redis-cluster/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ module "elasticache" {
4444
description = "VPC traffic"
4545
cidr_ipv4 = module.vpc.vpc_cidr_block
4646
}
47+
ingress-self-redis = {
48+
type = "ingress"
49+
referenced_security_group_id = "self"
50+
description = "Allow traffic from this security group to itself."
51+
}
4752
}
4853

4954
# Subnet Group

0 commit comments

Comments
 (0)