Skip to content

Conversation

@tp0lajz3r
Copy link

@tp0lajz3r tp0lajz3r commented Mar 24, 2025

what

added check for length of the module.this.id parameter. If it's 0 it will use variable broker_name

why

This resolves the issue:

│ Error: expected length of broker_name to be in the range (1 - 50), got

│ with module.mq_broker.aws_mq_broker.default[0],
│ on .terraform/modules/mq_broker/main.tf line 91, in resource "aws_mq_broker" "default":
│ 91: broker_name = module.this.id



│ Error: expected value of broker_name to match regular expression "^[0-9A-Za-z_-]+$", got

│ with module.mq_broker.aws_mq_broker.default[0],
│ on .terraform/modules/mq_broker/main.tf line 91, in resource "aws_mq_broker" "default":
│ 91: broker_name = module.this.id

references

closes #65

@tp0lajz3r tp0lajz3r requested review from a team as code owners March 24, 2025 15:57
@mergify mergify bot added the triage Needs triage label Mar 24, 2025
@tp0lajz3r tp0lajz3r changed the title fix broker_name error fix(broker_name error) add option tu use custom variable for broker name Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Needs triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

module.this.id Error

1 participant