Using Console
Using CLI
BlockPublicAcls
, IgnorePublicAcls
, BlockPublicPolicy
, and RestrictPublicBuckets
parameters to true
, which blocks public access to S3 buckets and objects.<bucket-name>
with the name of the S3 bucket you want to verify. This command retrieves the current policy status for the specified S3 bucket.<bucket-name>
with the name of the S3 bucket you want to update. This policy denies all public access to the specified S3 bucket.Using Python