Guided Walkthroughs

Configuration Packages

AI CloudAdvisor (Beta)

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

Backups & DR

Cloudformation Guard Rules for Amazon Neptune

CloudFormation guard rules template for Amazon Neptune resources

The following rules are included: 

  • Encryption At-Rest Enabled
  • Audit Logging Enabled
  • Backup Retention Period > 7 Days
  • Deletion Protection Enabled
CloudFormation Validation Tool: Syntax and Security validation for your templates online
Try out CloudAdvisor: An AI-Powered Assistant for AWS Cloud


let neptune_dbclusters = Resources.*[
	Type == "AWS::Neptune::DBCluster"
]

rule neptune_encryption_at_rest when %neptune_dbclusters !empty {
	%neptune_dbclusters {
		Properties {
			StorageEncrypted exists <<StorageEncrypted is not configured. (i.e. disabled)>>
			when StorageEncrypted exists {
				StorageEncrypted == true <<StorageEncrypted is disabled.>>
			}
		}
	}
}

rule neptune_audit_logs_enabled when %neptune_dbclusters !empty {
	%neptune_dbclusters {
		Properties {
			EnableCloudwatchLogsExports exists <<EnableCloudwatchLogsExports is not configured. (i.e. disabled)>>
			when EnableCloudwatchLogsExports exists {
				some EnableCloudwatchLogsExports[*] == "audit" <<Audit logs is disabled.>>
			}
		}
	}
}

rule neptune_backup_retention_period when %neptune_dbclusters !empty {
	%neptune_dbclusters {
		Properties {
			BackupRetentionPeriod exists <<BackupRetentionPeriod is not configured. (i.e. default is 1)>>
			when BackupRetentionPeriod exists {
				BackupRetentionPeriod >= 7 <<BackupRetentionPeriod is set to less than 7 days.>>
			}
		}
	}
}

rule neptune_deletion_protection when %neptune_dbclusters !empty {
	%neptune_dbclusters {
		Properties {
			DeletionProtection exists <<DeletionProtection is not configured. (i.e. disabled)>>
			when DeletionProtection exists {
				DeletionProtection == true <<DeletionProtection 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