aws s3api put-public-access-block \ --bucket my-bucket \ --public-access-block-configuration \ BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true CODE_BLOCK: aws s3api put-public-access-block \ --bucket my-bucket \ --public-access-block-configuration \ BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true CODE_BLOCK: aws s3api put-public-access-block \ --bucket my-bucket \ --public-access-block-configuration \ BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true CODE_BLOCK: aws ec2 describe-images --owners self \ --query "Images[?Public==\`true\`].[ImageId,Name]" CODE_BLOCK: aws ec2 describe-images --owners self \ --query "Images[?Public==\`true\`].[ImageId,Name]" CODE_BLOCK: aws ec2 describe-images --owners self \ --query "Images[?Public==\`true\`].[ImageId,Name]" CODE_BLOCK: aws ec2 enable-ebs-encryption-by-default --region eu-central-1 CODE_BLOCK: aws ec2 enable-ebs-encryption-by-default --region eu-central-1 CODE_BLOCK: aws ec2 enable-ebs-encryption-by-default --region eu-central-1 CODE_BLOCK: aws rds modify-db-instance \ --db-instance-identifier my-database \ --no-publicly-accessible \ --apply-immediately CODE_BLOCK: aws rds modify-db-instance \ --db-instance-identifier my-database \ --no-publicly-accessible \ --apply-immediately CODE_BLOCK: aws rds modify-db-instance \ --db-instance-identifier my-database \ --no-publicly-accessible \ --apply-immediately COMMAND_BLOCK: pip install cloud-audit cloud-audit scan COMMAND_BLOCK: pip install cloud-audit cloud-audit scan COMMAND_BLOCK: pip install cloud-audit cloud-audit scan
- BlockPublicAcls
- IgnorePublicAcls
- BlockPublicPolicy
- RestrictPublicBuckets