Using Console
Using CLI
<security-group-id>
with the Security Group ID noted in step 3 and <your-ip>
with your IP address:
Using Python
'your_region'
and 'your_security_group_id'
with the appropriate values for your environment.After running this script, the Security Group associated with the MQ Broker will be updated to revoke public access, thereby remedying the misconfiguration of the MQ Broker being publicly accessible in AWS.