Skip to content

Commit

Permalink
Merge pull request #6769 from wazuh/enhancement/6733-cloudtrail-iam-p…
Browse files Browse the repository at this point in the history
…ermissions

Modify bucket popfsenselicies template
  • Loading branch information
javimed authored Nov 22, 2023
2 parents 0c7e7ec + 0108a1b commit 2c8b762
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions source/_templates/cloud/amazon/bucket_policies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
.. include:: /_templates/cloud/amazon/read_only_policy_description.rst

.. code-block:: json
:emphasize-lines: 12,13
{
"Version": "2012-10-17",
"Statement": [
Expand All @@ -15,8 +16,8 @@
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::bucket-name/*",
"arn:aws:s3:::bucket-name"
"arn:aws:s3:::<bucket-name>/*",
"arn:aws:s3:::<bucket-name>"
]
}
]
Expand All @@ -25,6 +26,7 @@
.. include:: /_templates/cloud/amazon/delete_policy_description.rst

.. code-block:: json
:emphasize-lines: 13,14
{
"Version": "2012-10-17",
Expand All @@ -38,11 +40,13 @@
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::bucket-name/*",
"arn:aws:s3:::bucket-name"
"arn:aws:s3:::<bucket-name>/*",
"arn:aws:s3:::<bucket-name>"
]
}
]
}
.. note:: ``<bucket-name>`` is a placeholder. Replace it with the actual name of the bucket from which you want to retrieve logs.

.. End of include file

0 comments on commit 2c8b762

Please sign in to comment.