Skip to content

Commit 0380a5a

Browse files
Adds capability to attach existing security groups to Opensearch domain (#200)
Co-authored-by: Igor Rodionov <[email protected]>
1 parent e21ba5f commit 0380a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opensearch_domain.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ resource "aws_opensearch_domain" "default" {
7373
for_each = var.vpc_enabled ? [true] : []
7474

7575
content {
76-
security_group_ids = [join("", aws_security_group.default[*].id)]
76+
security_group_ids = var.create_security_group ? [join("", aws_security_group.default[*].id)] : var.security_groups
7777
subnet_ids = var.subnet_ids
7878
}
7979
}

0 commit comments

Comments
 (0)