You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: s3-block-public-access/enable-s3-block-public-access.py
+15-2
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ def main(args, logger):
56
56
deffix_bucket(s3_client, bucket, args, f=None):
57
57
'''Determine if the Bucket is safe to fix. Do the fix or write the AWS CLI or just notify based on args '''
58
58
ifnotis_safe_to_fix_bucket(s3_client, bucket):
59
-
logger.warning(f"Bucket {bucket} has a bucket policy or ACLs that could conflict with Block Public Access. Not Enabling it.")
59
+
logger.warning(f"Bucket {bucket} has a bucket policy, conflicting ACLs or Website Hosting enabled which could conflict with Block Public Access. Not Enabling it.")
60
60
return(False)
61
61
elifargs.actually_do_itisTrue:
62
62
logger.info(f"Enabling Block Public Access on {bucket}")
0 commit comments