diff --git a/README.md b/README.md index 6c1d621..5c7c1d5 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,6 @@ module "amq" { namespace = "${var.namespace}" stage = "${var.stage}" name = "${var.name}" - broker_name = "${var.mq_broker_name}" apply_immediately = "${var.mq_apply_immediately}" auto_minor_version_upgrade = "${var.mq_auto_minor_version_upgrade}" deployment_mode = "${var.mq_deployment_mode}" @@ -134,8 +133,8 @@ Available targets: |------|-------------| | admin_username | AmazonMQ admin username | | application_username | AmazonMQ application username | -| broker_arn | The AmazonMQ broker ARN | -| broker_id | The AmazonMQ broker ID | +| broker_arn | AmazonMQ broker ARN | +| broker_id | AmazonMQ broker ID | | primary_amqp_ssl_endpoint | AmazonMQ primary AMQP+SSL endpoint | | primary_console_url | AmazonMQ active web console URL | | primary_ip_address | AmazonMQ primary IP address | diff --git a/README.yaml b/README.yaml index 7fbe365..bf8d451 100644 --- a/README.yaml +++ b/README.yaml @@ -53,7 +53,6 @@ usage: |- namespace = "${var.namespace}" stage = "${var.stage}" name = "${var.name}" - broker_name = "${var.mq_broker_name}" apply_immediately = "${var.mq_apply_immediately}" auto_minor_version_upgrade = "${var.mq_auto_minor_version_upgrade}" deployment_mode = "${var.mq_deployment_mode}" diff --git a/docs/terraform.md b/docs/terraform.md index 476e2f6..fdf32c5 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -40,8 +40,8 @@ |------|-------------| | admin_username | AmazonMQ admin username | | application_username | AmazonMQ application username | -| broker_arn | The AmazonMQ broker ARN | -| broker_id | The AmazonMQ broker ID | +| broker_arn | AmazonMQ broker ARN | +| broker_id | AmazonMQ broker ID | | primary_amqp_ssl_endpoint | AmazonMQ primary AMQP+SSL endpoint | | primary_console_url | AmazonMQ active web console URL | | primary_ip_address | AmazonMQ primary IP address | diff --git a/outputs.tf b/outputs.tf index 3d0fa63..4b7a79d 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,71 +1,89 @@ output "broker_id" { - value = "${join("", aws_mq_broker.default.*.id)}" + value = "${join("", aws_mq_broker.default.*.id)}" + description = "AmazonMQ broker ID" } output "broker_arn" { - value = "${join("", aws_mq_broker.default.*.arn)}" + value = "${join("", aws_mq_broker.default.*.arn)}" + description = "AmazonMQ broker ARN" } output "primary_console_url" { - value = "${element(concat(aws_mq_broker.default.*.instances.0.console_url, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.0.console_url, list("")), 0)}" + description = "AmazonMQ active web console URL" } output "primary_ssl_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.0, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.0, list("")), 0)}" + description = "AmazonMQ primary SSL endpoint" } -output "primary_ampq_ssl_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.1, list("")), 0)}" +output "primary_amqp_ssl_endpoint" { + value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.1, list("")), 0)}" + description = "AmazonMQ primary AMQP+SSL endpoint" } output "primary_stomp_ssl_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.2, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.2, list("")), 0)}" + description = "AmazonMQ primary STOMP+SSL endpoint" } output "primary_mqtt_ssl_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.3, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.3, list("")), 0)}" + description = "AmazonMQ primary MQTT+SSL endpoint" } output "primary_wss_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.4, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.0.endpoints.4, list("")), 0)}" + description = "AmazonMQ primary WSS endpoint" } output "primary_ip_address" { - value = "${element(concat(aws_mq_broker.default.*.instances.0.ip_address, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.0.ip_address, list("")), 0)}" + description = "AmazonMQ primary IP address" } output "secondary_console_url" { - value = "${element(concat(aws_mq_broker.default.*.instances.1.console_url, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.1.console_url, list("")), 0)}" + description = "AmazonMQ secondary web console URL" } output "secondary_ssl_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.0, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.0, list("")), 0)}" + description = "AmazonMQ secondary SSL endpoint" } -output "secondary_ampq_ssl_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.1, list("")), 0)}" +output "secondary_amqp_ssl_endpoint" { + value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.1, list("")), 0)}" + description = "AmazonMQ secondary AMQP+SSL endpoint" } output "secondary_stomp_ssl_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.2, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.2, list("")), 0)}" + description = "AmazonMQ secondary STOMP+SSL endpoint" } output "secondary_mqtt_ssl_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.3, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.3, list("")), 0)}" + description = "AmazonMQ secondary MQTT+SSL endpoint" } output "secondary_wss_endpoint" { - value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.4, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.1.endpoints.4, list("")), 0)}" + description = "AmazonMQ secondary WSS endpoint" } output "secondary_ip_address" { - value = "${element(concat(aws_mq_broker.default.*.instances.1.ip_address, list("")), 0)}" + value = "${element(concat(aws_mq_broker.default.*.instances.1.ip_address, list("")), 0)}" + description = "AmazonMQ secondary IP address" } output "admin_username" { - value = "${local.mq_admin_user}" + value = "${local.mq_admin_user}" + description = "AmazonMQ admin username" } output "application_username" { - value = "${local.mq_application_user}" + value = "${local.mq_application_user}" + description = "AmazonMQ application username" }