Skip to content

Commit

Permalink
Make bucket not public
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvandermeulen committed Mar 20, 2023
1 parent b80ed63 commit 99b23c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
state: present
policy_json: "{{ lookup('template', 'policy.json.j2') }}"
profile: "{{ aws_profile }}"
public_access:
block_public_acls: true
ignore_public_acls: true
block_public_policy: true
restrict_public_buckets: true

delegate_to: localhost
become: false
vars:
Expand Down

0 comments on commit 99b23c6

Please sign in to comment.