Skip to content

Commit

Permalink
H-plugin memory db snapshot retention
Browse files Browse the repository at this point in the history
  • Loading branch information
Muzzamil authored and Muzzamil committed Jul 15, 2024
1 parent 202ec08 commit e8b64fc
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions plugins/aws/memorydb/memorydbSnapshotRetention.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ module.exports = {

let resource = cluster.ARN;

if (cluster.SnapshotRetentionLimit &&
cluster.SnapshotRetentionLimit > 0) {
helpers.addResult(results, 0, 'MemoryDB cluster has snapshot retention period set', region, resource);
} else {
helpers.addResult(results, 2, 'MemoryDB cluster does not have snapshot retention period set', region, resource);
}

if (cluster.SnapshotRetentionLimit && cluster.SnapshotRetentionLimit > 0) {
helpers.addResult(results, 0, 'MemoryDB cluster has snapshot retention period set', region, resource);
} else {
helpers.addResult(results, 2, 'MemoryDB cluster does not have snapshot retention period set', region, resource);
}
}

rcb();
Expand Down

0 comments on commit e8b64fc

Please sign in to comment.