Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit eb349d7

Browse files
authored
Merge pull request #37 from schroerbrian/security-group-tags
Add option to pass security group tags into couchbase-cluster module.
2 parents 97f6fbb + ccb8418 commit eb349d7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

modules/couchbase-cluster/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ resource "aws_security_group" "lc_security_group" {
8686
lifecycle {
8787
create_before_destroy = true
8888
}
89+
90+
tags = "${var.security_group_tags}"
8991
}
9092

9193
resource "aws_security_group_rule" "allow_ssh_inbound" {

modules/couchbase-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,9 @@ variable "tags" {
160160
# }
161161
# ]
162162
}
163+
164+
variable "security_group_tags" {
165+
description = "Custom tags to apply to the security group."
166+
type = "map"
167+
default = {}
168+
}

0 commit comments

Comments
 (0)