Skip to content

Create a MQ broker in non-default vpc #1517

@chakch

Description

@chakch

Describe the bug
I'm not able to create a broker in a different VPC than the default one

Steps to reproduce
Create an MQ broker using the following manifest:
apiVersion: mq.services.k8s.aws/v1alpha1
kind: Broker
metadata:
name: my-broker
spec:
name: my-broker
autoMinorVersionUpgrade: false
deploymentMode: SINGLE_INSTANCE
engineType: RabbitMQ
engineVersion: "3.9.16"
hostInstanceType: "mq.t3.micro"
publiclyAccessible: false

storageType: string

securityGroups:

  • SECURITY_GROUP_ID
    subnetIDs:
  • SUBNET_ID_GROUP_ID
    users:
    • password:
      namespace: ack-system
      name: mq-password
      key: password
      groups: []
      consoleAccess: true
      username: admin
      =>
      2022-10-21T22:50:06.756Z ERROR controller.broker Reconciler error {"reconciler group": "mq.services.k8s.aws", "reconciler kind": "Broker", "name": "my-broker", "namespace": "ack-system", "error": "BadRequestException: Subnets must belong to the same VPC.\n{\n RespMetadata: {\n StatusCode: 400,\n RequestID: "e32fab71-2318-4a95-bcac-b1fcc27c86df"\n },\n ErrorAttribute: "subnetIds",\n Message_: "Subnets must belong to the same VPC."\n}"}

I think there is need to add VPCId ine the mq broker spec

Expected outcome
create an Broker in VPC different from the default one

Environment

  • Kubernetes version:1.23
  • Using EKS (yes/no), if so version? eks.2
  • AWS service targeted (S3, RDS, etc.) MQ

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.needs-priorityIndicates a PR lacks a `priority/foo` label and requires one.service/mqIndicates issues or PRs that are related to mq-controller.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions