cloudposse / terraform-aws-mq-broker

Terraform module for provisioning an AmazonMQ broker
https://cloudposse.com/accelerate
Apache License 2.0
39 stars 60 forks source link

MQ Broker should be recreate when id for SG changed #61

Open ByJacob opened 1 year ago

ByJacob commented 1 year ago

Describe the Bug

╷
│ Error: updating MQ Broker (b-f9764a70-79ab-41de-ba60-2f722296ba50) security groups: BadRequestException: Changing security groups is not supported for RabbitMQ brokers.
│ {
│   RespMetadata: {
│     StatusCode: 400,
│     RequestID: "52d88252-71f0-4800-9c41-aa8455b174bf"
│   },
│   ErrorAttribute: "securityGroups",
│   Message_: "Changing security groups is not supported for RabbitMQ brokers."
│ }
│ 
│   with module.rabbitmq.aws_mq_broker.default[0],
│   on ../../modules/mq/main.tf line 89, in resource "aws_mq_broker" "default":
│   89: resource "aws_mq_broker" "default" {
│ 
╵

Expected Behavior

id for security group don't change, or recreate rabbitMQ broker whe security_id was change

Steps to Reproduce

  1. Create rabbitmq
  2. Create sq
  3. add new SQ to rabbitmq by variable allowed_security_group_ids
  4. apply changes

Screenshots

No response

Environment

Additional Context

No response