Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom broker name #70

Closed
wants to merge 11 commits into from
2 changes: 2 additions & 0 deletions examples/complete/fixtures.us-east-2.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ stage = "test"

name = "mq-broker"

broker_name = "example-broker"
aknysh marked this conversation as resolved.
Show resolved Hide resolved

apply_immediately = true

auto_minor_version_upgrade = true
Expand Down
1 change: 1 addition & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module "subnets" {
module "mq_broker" {
source = "../../"

broker_name = var.broker_name
aknysh marked this conversation as resolved.
Show resolved Hide resolved
vpc_id = module.vpc.vpc_id
subnet_ids = module.subnets.private_subnet_ids

Expand Down
6 changes: 6 additions & 0 deletions examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,9 @@ variable "use_aws_owned_key" {
default = true
description = "Boolean to enable an AWS owned Key Management Service (KMS) Customer Master Key (CMK) for Amazon MQ encryption that is not in your account"
}

variable "broker_name" {
type = string
description = "The name of the broker. If omitted, it will be set to the value of `module.this.id`"
default = ""
}