PARALLAX

s3_logging

Manage logging facility of an s3 bucket in AWS

Collection: community.aws

Full Name: community.aws.s3_logging

Synopsis

Manage logging facility of an s3 bucket in AWS

Parameters

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
debug_botocore_endpoint_logsboolfalse
endpoint_urlstr
namestryes
profilestr
regionstr
secret_keystr
session_tokenstr
statestrpresent
target_bucketstr
target_prefixstr
validate_certsbooltrue

Example

yaml
- name: Enable logging of s3 bucket mywebsite.com to s3 bucket mylogs
  community.aws.s3_logging:
    name: mywebsite.com
    target_bucket: mylogs
    target_prefix: logs/mywebsite.com
    state: present

- name: Remove logging on an s3 bucket
  community.aws.s3_logging:
    name: mywebsite.com
    state: absent
Search
    ↑ ↓ move↵ openesc close