feat(mq): add new check `mq_activemq_broker_active_standby_mode`
Context
Amazon MQ supports the deployment of message brokers in ActiveMQ, providing managed message services that help ensure high availability and resilience. By deploying brokers in active/standby mode, Amazon MQ ensures redundancy and minimizes downtime during failure events by hosting the brokers across different Availability Zones (AZs). This mode provides continuous service availability and synchronization to reduce data loss in case of an outage.
Description
This check ensures that Amazon MQ brokers using ActiveMQ are deployed in active/standby mode rather than the default single-instance mode. If the deployment mode is set to single-instance, the check will fail, indicating that the broker does not meet the high availability standard.
Checklist
- Are there new checks included in this PR? Yes.
- If so, do we need to update permissions for the provider? No.
- [x] Review if the code is being covered by tests.
- [x] Review if code is being documented following this specification https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings
- [x] Review if backport is needed.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.68%. Comparing base (
df37327) to head (e56e8eb). Report is 1163 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #5433 +/- ##
==========================================
- Coverage 89.72% 89.68% -0.04%
==========================================
Files 1084 1085 +1
Lines 33494 33517 +23
==========================================
+ Hits 30051 30059 +8
- Misses 3443 3458 +15
| Components | Coverage Δ | |
|---|---|---|
| prowler | 89.68% <100.00%> (-0.04%) |
:arrow_down: |
| api | ∅ <ø> (∅) |