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

CloudFormation Guard Rules

Cloudformation Guard Rules for Amazon SageMaker

CloudFormation guard rules template for Amazon SageMaker resources

The following rules are included: 

  • Notebook Instance Direct Internet Access Disabled
  • Notebook Instance Storage Encryption
  • Notebook Instance VPC configured
  • Notebook Instance Root Access
  • Model Network Isolation
  • Model VPC Configured
  • Endpoint Configuration Encryption At-Rest
CloudFormation Validation Tool: Syntax and Security validation for your templates online
Try out CloudAdvisor: An AI-Powered Assistant for AWS Cloud


let sagemaker_notebookinstances = Resources.*[
	Type == "AWS::SageMaker::NotebookInstance"
]

let sagemaker_models = Resources.*[
	Type == "AWS::SageMaker::Model"
]

let sagemaker_endpointconfigs = Resources.*[
	Type == "AWS::SageMaker::EndpointConfig"
]

rule sagemaker_instance_direct_internet_access when %sagemaker_notebookinstances !empty {
	%sagemaker_notebookinstances {
		Properties {
			DirectInternetAccess exists <<DirectInternetAccess is not configured (i.e. enabled).>>
			when DirectInternetAccess exists {
				DirectInternetAccess == "Disabled" <<DirectInternetAccess is enabled.>>
			}
		}
	}
}

rule sagemaker_instance_storage_encryption when %sagemaker_notebookinstances !empty {
	%sagemaker_notebookinstances {
		Properties {
			KmsKeyId exists <<Encryption is disabled.>>
		}
	}
}

rule sagemaker_instance_vpc_configured when %sagemaker_notebookinstances !empty {
	%sagemaker_notebookinstances {
		Properties {
			SubnetId exists <<SageMaker Notebook Instance not configured with VPC.>>
		}
	}
}

rule sagemaker_instance_root_access when %sagemaker_notebookinstances !empty {
	%sagemaker_notebookinstances {
		Properties {
			RootAccess exists <<RootAccess is not configured (i.e. enabled).>>
			when RootAccess exists {
				RootAccess == "Disabled" <<Root Access is enabled.>>
			}
		}
	}
}

rule sagemaker_model_network_isolation when %sagemaker_models !empty {
	%sagemaker_models {
		Properties {
			EnableNetworkIsolation exists <<EnableNetworkIsolation is not configured (i.e. disabled).>>
			when EnableNetworkIsolation exists {
				EnableNetworkIsolation == true <<Network Isolation is disabled.>>
			}
		}
	}
}

rule sagemaker_model_vpc_settings when %sagemaker_models !empty {
	%sagemaker_models {
		Properties {
			VpcConfig exists <<Vpc Config is not configured.>>
		}
	}
}

rule sagemaker_endpoint_configuration_encryption_at_rest_enabled when %sagemaker_endpointconfigs !empty {
	%sagemaker_endpointconfigs {
		Properties {
			KmsKeyId exists <<Encryption 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