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

[Bug]: aws_mq_broker update fails with BadRequestException #32446

Closed
cstclair-tunein opened this issue Jul 10, 2023 · 3 comments · Fixed by #32454
Closed

[Bug]: aws_mq_broker update fails with BadRequestException #32446

cstclair-tunein opened this issue Jul 10, 2023 · 3 comments · Fixed by #32454
Labels
bug Addresses a defect in current functionality. service/mq Issues and PRs that pertain to the mq service.
Milestone

Comments

@cstclair-tunein
Copy link

Terraform Core Version

v1.5.0

AWS Provider Version

5.7.0

Affected Resource(s)

aws_mq_broker

Expected Behavior

When configuring an activeMQ user like so:

resource "aws_mq_broker" "amq" {
  broker_name = "${var.name}_${var.env}"

  configuration {
    id       = aws_mq_configuration.config.id
    revision = aws_mq_configuration.config.latest_revision
  }

  engine_type        = "ActiveMQ"
  engine_version     = "5.15.10"
  host_instance_type = "mq.t2.micro"
  security_groups    = [aws_security_group.allow_internal.id]
  subnet_ids         = [var.subnet_id]

  user {
    username       = var.amq_username
    password       = random_password.amq_password.result
    console_access = true
  }
}

An AMQ user is created that has console access.

Actual Behavior

An error is thrown:

 Error: updating MQ Broker (b-97e317ba-224b-443c-a180-84330470e7b9) users: BadRequestException: Replication user couldn't have console access. [replicationUser] and [consoleAccess] are mutually exclusive parameters.
│ {
│   RespMetadata: {
│     StatusCode: 400,
│     RequestID: "435a3662-40b3-453b-9414-6630542240eb"
│   },
│   Message_: "Replication user couldn't have console access. [replicationUser] and [consoleAccess] are mutually exclusive parameters."
│ }

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

Not relevant.

Steps to Reproduce

  • Create a basic AMQ terraform repo
  • Attempt to create a user with console access

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@cstclair-tunein cstclair-tunein added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jul 10, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/mq Issues and PRs that pertain to the mq service. label Jul 10, 2023
@johnsonaj johnsonaj removed the needs-triage Waiting for first response or review from a maintainer. label Jul 11, 2023
@jar-b jar-b changed the title [Bug]: [Bug]: aws_mq_broker update fails with BadRequestException Jul 11, 2023
@github-actions github-actions bot added this to the v5.8.0 milestone Jul 11, 2023
@github-actions
Copy link

This functionality has been released in v5.8.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/mq Issues and PRs that pertain to the mq service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants