66 lines
1.5 KiB
Python
66 lines
1.5 KiB
Python
|
from models import RuleCheckResult
|
||
|
import boto3
|
||
|
|
||
|
|
||
|
# client = boto3.client("")
|
||
|
|
||
|
|
||
|
def s3_access_point_in_vpc_only():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|
||
|
|
||
|
|
||
|
def s3_bucket_default_lock_enabled():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|
||
|
|
||
|
|
||
|
def s3_bucket_level_public_access_prohibited():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|
||
|
|
||
|
|
||
|
def s3_bucket_logging_enabled():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|
||
|
|
||
|
|
||
|
def s3_bucket_ssl_requests_only():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|
||
|
|
||
|
|
||
|
def s3_bucket_versioning_enabled():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|
||
|
|
||
|
|
||
|
def s3_default_encryption_kms():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|
||
|
|
||
|
|
||
|
def s3_event_notifications_enabled():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|
||
|
|
||
|
|
||
|
def s3_last_backup_recovery_point_created():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|
||
|
|
||
|
|
||
|
def s3_lifecycle_policy_check():
|
||
|
return RuleCheckResult(
|
||
|
passed=False, compliant_resources=[], non_compliant_resources=[]
|
||
|
)
|