CloudFormation guard rules template for AWS Certificate Manager (ACM) resources

The following rules are included: 

  • Certificate Transparency Logging Enabled to ensure this setting is enabled for ACM certificates

let acm_certificates = Resources.*[
	Type == "AWS::CertificateManager::Certificate"
]

rule acm_certificate_transparency_logging when %acm_certificates !empty {
	%acm_certificates {
		Properties {
			CertificateTransparencyLoggingPreference !exists <<Transparency logging is disabled.>> OR
			when CertificateTransparencyLoggingPreference exists {
				CertificateTransparencyLoggingPreference == "ENABLED" <<Transparency logging is disabled.>>
			}
		}
	}
}


Actions



Customize Template

* Required field