Guided Walkthroughs

Configuration Packages

By Implementation

Service Control PoliciesConfig RulesAuto Remediation RulesConformance PacksAmazon GuardDutyAmazon InspectorAWS Security HubAWS Network FirewallRoute53 Resolver SecurityAmazon MacieS3 Bucket PoliciesCloudWatch Alarms and Event RulesAWS WAFAWS Secrets ManagerAWS Systems ManagerSecurity Groups & NACLsAWS KMSAWS SSOIAM PoliciesVPC Endpoint PoliciesCloudFormation Guard RulesLoad BalancersRDS Event SubscriptionsAWS Resource Access Manager (RAM)

By Service Protected

Reference Guides

Other

CloudFormation Guard Rules

Cloudformation Guard Rules for Amazon Redshift

CloudFormation guard rules template for Amazon Redshift resources

The following rules are included: 

  • Public Access Disabled
  • Audit Logging Enabled
  • Encryption At-Rest Enabled
  • Automated Backups Enabled
  • Automated Version Upgrades Enabled
  • Enhanced VPC Routing Enabled
CloudFormation Validation Tool: Syntax and Security validation for your templates online

let redshift_clusters = Resources.*[
	Type == "AWS::Redshift::Cluster"
]

rule redshift_public_access when %redshift_clusters !empty {
	%redshift_clusters {
		Properties {
			PubliclyAccessible exists <<PubliclyAccessible is not configured. (i.e. enabled)>>
			when PubliclyAccessible exists {
				PubliclyAccessible == false <<Public Access is enabled.>>
			}
		}
	}
}


rule redshift_logging_enabled when %redshift_clusters !empty {
	%redshift_clusters {
		Properties {
			LoggingProperties exists <<LoggingProperties is not configured.(i.e. disabled)>>
		}
	}
}

rule redshift_storage_encrypted when %redshift_clusters !empty {
	%redshift_clusters {
		Properties {
			Encrypted exists <<Encrypted is not configured. (i.e. disabled)>>
			when Encrypted exists {
				Encrypted == true <<Encrypted at rest is disabled.>>
			}
		}
	}
}

rule redshift_version_upgrades when %redshift_clusters !empty {
	%redshift_clusters {
		Properties {
			AllowVersionUpgrade !exists OR
			AllowVersionUpgrade exists
			when AllowVersionUpgrade exists {
				AllowVersionUpgrade == true <<AllowVersionUpgrade is disabled.>>
			}
		}
	}
}

rule redshift_automated_snapshots when %redshift_clusters !empty {
	%redshift_clusters {
		Properties {
			AutomatedSnapshotRetentionPeriod !exists OR
			AutomatedSnapshotRetentionPeriod exists
			when AutomatedSnapshotRetentionPeriod exists {
				AutomatedSnapshotRetentionPeriod > 0 <<Automated snapshot is disabled.>>
			}
		}
	}
}

rule redshift_enhanced_vpc_routing when %redshift_clusters !empty {
	%redshift_clusters {
		Properties {
			EnhancedVpcRouting exists <<EnhancedVpcRouting is not configured. (i.e. disabled)>>
			when EnhancedVpcRouting exists {
				EnhancedVpcRouting == true <<Enhanced VPC routing is disabled.>>
			}
		}
	}
}


Actions



Customize Template

* Required field

Upgrade to Premium for More Features
Sign up

Guided Walkthroughs
Step-by-step configuration wizards for your environment
Dedicated Security Account
AWS Backup Strategy
VPC Connectivity Setup
Automated Patching
All Guides
Configuration Packages
Pre-built packages for common configuration
Common SCPs
CloudFormation Guard Rules
Auto Remediation Rules
IAM Monitoring & Compliance
All Packages
Automated Assessments
  • 350+ security checks
  • Well-architected reviews
  • Detailed compliance reports
  • Remediation templates
  • Email summaries
  • Learn more