Skip to content

Commit

Permalink
Msk feature 2 (#452)
Browse files Browse the repository at this point in the history
* Create your own security group for msk

* passing variables
  • Loading branch information
bcarranza authored Dec 18, 2023
1 parent c8193c7 commit fbbac86
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform-modules/aws/msk_1.0.9/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ module "msk" {
multi_vpc_connectivity_iam_enabled = var.multi_vpc_connectivity_iam_enabled
properties = var.properties
allowed_security_group_ids = var.allowed_security_group_ids
associated_security_group_ids = var.associated_security_group_ids
create_security_group = var.create_security_group
depends_on = [
aws_cloudwatch_log_group.msk_cloudwatch_log_group,
aws_s3_bucket.this,
Expand Down
15 changes: 15 additions & 0 deletions terraform-modules/aws/msk_1.0.9/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,21 @@ variable "allowed_security_group_ids" {
description = "The security_group_id_list output from the security_groups module"
}

variable "create_security_group" {
type = bool
description = "Set `true` to create and configure a new security group. If false, `associated_security_group_ids` must be provided."
default = true
}

variable "associated_security_group_ids" {
type = list(string)
description = <<-EOT
A list of IDs of Security Groups to associate the created resource with, in addition to the created security group.
These security groups will not be modified and, if `create_security_group` is `false`, must have rules providing the desired access.
EOT
default = []
}

variable "client_tls_auth_enabled" {
type = bool
description = "Set true to enable the Client TLS Authentication"
Expand Down

0 comments on commit fbbac86

Please sign in to comment.