Help Center/ Distributed Message Service for RabbitMQ/ FAQs/ Instances/ Why Does Enabling Public Access Fail?
Updated on 2026-07-08 GMT+08:00

Why Does Enabling Public Access Fail?

Symptom

Enabling public access fails. The error message is Insufficient permissions, authentication failed, or access denied.

Possible Cause

When you enable public access for the first time, RabbitMQ automatically creates a cloud service agency named ServiceLinkedAgencyForDMS. This agency grants RabbitMQ operation permissions for cloud services, such as Log Tank Service (LTS), Elastic IP (EIP), and Virtual Private Cloud (VPC), enabling it to access and operate these services.

The enablement may fail in the following scenarios:

  • If an IAM user does not have the iam:agencies:createServiceLinkedAgencyV5 permission, ServiceLinkedAgencyForDMS will fail to be created and so will the enablement.
  • After ServiceLinkedAgencyForDMS is created, allow up to 15 minutes for it to take effect. Meanwhile, the RabbitMQ background task may fail to enable public access due to insufficient permissions. The error message is authentication failed or access denied.

Solution

  • Create a custom identity policy that contains the iam:agencies:createServiceLinkedAgencyV5 permission and attach the policy to the IAM user. For details, see Creating a Custom Identity Policy. Then, try again.
  • Wait for a while and try again.