Skip to content

Commit e81748b

Browse files
authored
docs: Add example usage of security_group_rules (#1)
1 parent 5ee6eeb commit e81748b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/complete/main.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ module "opensearch" {
116116
}
117117
}
118118

119+
# Security Group rule example
120+
security_group_rules = {
121+
ingress_443 = {
122+
type = "ingress"
123+
description = "HTTPS access from VPC"
124+
from_port = 443
125+
to_port = 443
126+
ip_protocol = "tcp"
127+
cidr_ipv4 = local.vpc_cidr
128+
}
129+
}
130+
119131
# Access policy
120132
access_policy_statements = [
121133
{

0 commit comments

Comments
 (0)