Skip to content

Instantly share code, notes, and snippets.

@Millward2000
Created November 16, 2022 12:33
Show Gist options
  • Save Millward2000/cf0a01079b49971288724d5b072cc853 to your computer and use it in GitHub Desktop.
Save Millward2000/cf0a01079b49971288724d5b072cc853 to your computer and use it in GitHub Desktop.
################################################################################
#
# Conformance Pack:
# Operational Best Practices for Amazon S3.
#
# Modified to use an input parameter identifying exempted resources
################################################################################
Resources:
S3BucketLevelPublicAccessProhibited:
Properties:
InputParameters:
{"excludedPublicBuckets": "public-bucket-name"}
ConfigRuleName: s3-bucket-level-public-access-prohibited
Scope:
ComplianceResourceTypes:
- "AWS::S3::Bucket"
Source:
Owner: AWS
SourceIdentifier: S3_BUCKET_LEVEL_PUBLIC_ACCESS_PROHIBITED
Type: AWS::Config::ConfigRule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment