This command will disable public read from an entire bucket. If you want to only disable public read from one object, use the AWS Console instructions
If your S3 bucket is in a different aWS account, you will need to provide credentials for that account first.
aws ssm start-automation-execution --document-name AWS-DisableS3BucketPublicReadWrite --parameters "{\"S3BucketName\": [\"<bucket-name>\"]}"
Return to the Lab Guide , but keep this page open if you want to re-enable public read access to the bucket after testing.