Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CCN ENS Medium #408

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ Parameters:
IamPasswordPolicyParamRequireUppercaseCharacters:
Default: 'true'
Type: String
RedshiftClusterConfigurationCheckParamClusterDbEncrypted:
Default: 'true'
Type: String
RedshiftClusterConfigurationCheckParamLoggingEnabled:
Default: 'true'
Type: String
RestrictedIncomingTrafficParamBlockedPort1:
Default: '20'
Type: String
Expand Down Expand Up @@ -806,18 +812,16 @@ Resources:
Properties:
ConfigRuleName: redshift-cluster-configuration-check
InputParameters:
clusterDbEncrypted: 'TRUE'
loggingEnabled: 'TRUE'
Scope:
ComplianceResourceTypes:
- AWS::Redshift::Cluster
Source:
Owner: AWS
SourceIdentifier: REDSHIFT_CLUSTER_CONFIGURATION_CHECK
Type: AWS::Config::ConfigRule
RedshiftClusterConfigurationCheck2:
Properties:
ConfigRuleName: redshift-cluster-configuration-check-2
clusterDbEncrypted:
Fn::If:
- redshiftClusterConfigurationCheckParamClusterDbEncrypted
- Ref: RedshiftClusterConfigurationCheckParamClusterDbEncrypted
- Ref: AWS::NoValue
loggingEnabled:
Fn::If:
- redshiftClusterConfigurationCheckParamLoggingEnabled
- Ref: RedshiftClusterConfigurationCheckParamLoggingEnabled
- Ref: AWS::NoValue
Scope:
ComplianceResourceTypes:
- AWS::Redshift::Cluster
Expand Down Expand Up @@ -1228,6 +1232,16 @@ Conditions:
- Fn::Equals:
- ''
- Ref: IamPasswordPolicyParamRequireUppercaseCharacters
redshiftClusterConfigurationCheckParamClusterDbEncrypted:
Fn::Not:
- Fn::Equals:
- ''
- Ref: RedshiftClusterConfigurationCheckParamClusterDbEncrypted
redshiftClusterConfigurationCheckParamLoggingEnabled:
Fn::Not:
- Fn::Equals:
- ''
- Ref: RedshiftClusterConfigurationCheckParamLoggingEnabled
restrictedIncomingTrafficParamBlockedPort1:
Fn::Not:
- Fn::Equals:
Expand Down