Skip to content

Commit

Permalink
Format Terraform code
Browse files Browse the repository at this point in the history
  • Loading branch information
hiranadikari committed Jan 22, 2024
1 parent 8f85bbf commit cc2d5eb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions modules/aws/MQ/aws_mq_broker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@
resource "aws_mq_broker" "mq" {
broker_name = join("-", [var.project, var.application, var.environment, var.region, "mq"])

engine_type = "ActiveMQ"
engine_version = var.engine_version
host_instance_type = var.instance_type
security_groups = var.security_group_ids
subnet_ids = var.subnet_ids
publicly_accessible = var.public_access
engine_type = "ActiveMQ"
engine_version = var.engine_version
host_instance_type = var.instance_type
security_groups = var.security_group_ids
subnet_ids = var.subnet_ids
publicly_accessible = var.public_access
auto_minor_version_upgrade = var.auto_minor_version_upgrade

dynamic "user" {
for_each = var.users
content {
username = user.value.username
password = user.value.password
username = user.value.username
password = user.value.password
console_access = user.value.console_access
}
}

logs {
audit = var.audit_logs_enabled
audit = var.audit_logs_enabled
general = var.general_logs_enabled
}
}
16 changes: 8 additions & 8 deletions modules/aws/MQ/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,34 +32,34 @@ variable "instance_type" {
type = string
}
variable "security_group_ids" {
type = list(string)
type = list(string)
default = null
}
variable "audit_logs_enabled" {
type = bool
type = bool
default = false
}
variable "general_logs_enabled" {
type = bool
type = bool
default = false
}
variable "users" {
type = list(object({
username = string
password = string
username = string
password = string
console_access = bool
}))
default = []
}
variable "subnet_ids" {
type = list(string)
type = list(string)
default = []
}
variable "public_access" {
type = bool
type = bool
default = false
}
variable "auto_minor_version_upgrade" {
type = bool
type = bool
default = false
}

0 comments on commit cc2d5eb

Please sign in to comment.