cfn-nag 0.5.43 → 0.5.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12abe31f4e70a4e02c070438485e908c9cb71c2417935ef426d7e92899d4168b
|
|
4
|
+
data.tar.gz: f4ae07a291fdc37fc53fa394e794afc95a7c1be7f9663258f48c76a512a869b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcda50c6f3eb790238b021a2cb54023ca387982f676d0b27be6142fd617976a703038df374f86ac79da1b78b03ea4614a61c09678b49137b897e12be30c4d83f
|
|
7
|
+
data.tar.gz: 8d1b7a557c5a91dd3c033bd990a5c737d1c791b6b85288a31f569fe32910521f13f991f8bbf6ee86b9c85c97c27af62cffb5a816fda5f19a40de3930957d475f
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'cfn-nag/violation'
|
|
4
|
+
require_relative 'boolean_base_rule'
|
|
5
|
+
|
|
6
|
+
class RDSInstanceDeletionProtectionRule < BooleanBaseRule
|
|
7
|
+
def rule_text
|
|
8
|
+
'RDS instance should have deletion protection enabled'
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def resource_type
|
|
12
|
+
'AWS::RDS::DBInstance'
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def boolean_property
|
|
16
|
+
:deletionProtection
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def rule_type
|
|
20
|
+
Violation::FAILING_VIOLATION
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def rule_id
|
|
24
|
+
'F80'
|
|
25
|
+
end
|
|
26
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cfn-nag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.44
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Kascic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-04-
|
|
11
|
+
date: 2020-04-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -279,6 +279,7 @@ files:
|
|
|
279
279
|
- lib/cfn-nag/custom_rules/RDSDBInstanceMasterUserPasswordRule.rb
|
|
280
280
|
- lib/cfn-nag/custom_rules/RDSDBInstanceMasterUsernameRule.rb
|
|
281
281
|
- lib/cfn-nag/custom_rules/RDSDBInstanceStorageEncryptedRule.rb
|
|
282
|
+
- lib/cfn-nag/custom_rules/RDSInstanceDeletionProtectionRule.rb
|
|
282
283
|
- lib/cfn-nag/custom_rules/RDSInstancePubliclyAccessibleRule.rb
|
|
283
284
|
- lib/cfn-nag/custom_rules/RedshiftClusterEncryptedRule.rb
|
|
284
285
|
- lib/cfn-nag/custom_rules/RedshiftClusterMasterUserPasswordRule.rb
|