Skip to content

Instantly share code, notes, and snippets.

@divyanshu-slice
Created February 19, 2021 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divyanshu-slice/a4df0db1622505d408050cdff44bf978 to your computer and use it in GitHub Desktop.
Save divyanshu-slice/a4df0db1622505d408050cdff44bf978 to your computer and use it in GitHub Desktop.
policies:
- name: CheckPublicBlockForPrivateS3Bucket
resource: s3
filters:
- type: check-public-block
BlockPublicAcls: false
BlockPublicPolicy: false
IgnorePublicAcls: false
RestrictPublicBuckets: false
actions:
- type: set-public-block
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment