PARALLAX

mq_user

Manage users in existing Amazon MQ broker

Collection: community.aws

Full Name: community.aws.mq_user

Synopsis

Manage users in existing Amazon MQ broker

Parameters

NameTypeRequiredDefaultDescription
access_keystr
allow_pw_updateboolfalse
aws_ca_bundlepath
aws_configdict
broker_idstryes
console_accessbool
debug_botocore_endpoint_logsboolfalse
endpoint_urlstr
groupslist
passwordstr
profilestr
regionstr
secret_keystr
session_tokenstr
statestrpresent
usernamestryes
validate_certsbooltrue

Example

yaml
- name: create/update user - set provided password if user doesn't exist, yet
  community.aws.mq_user:
    state: present
    broker_id: "aws-mq-broker-id"
    username: "sample_user1"
    console_access: false
    groups: ["g1", "g2"]
    password: "plain-text-password"

- name: allow console access and update group list - relying on default state
  community.aws.mq_user:
    broker_id: "aws-mq-broker-id"
    username: "sample_user1"
    region: "{{ aws_region }}"
    console_access: true
    groups: ["g1", "g2", "g3"]

- name: remove user - setting all credentials explicitly
  community.aws.mq_user:
    state: absent
    broker_id: "aws-mq-broker-id"
    username: "other_user"
Search
    ↑ ↓ move↵ openesc close