You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This is a free software: you can redistribute it and/or modify
4
+
# it under the terms of the GNU General Public License as published by
5
+
# the Free Software Foundation, either version 3 of the License, or
6
+
# (at your option) any later version.
7
+
#
8
+
# This Ansible library is distributed in the hope that it will be useful,
9
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+
# GNU General Public License for more details.
12
+
#
13
+
# You should have received a copy of the GNU General Public License
14
+
# along with this library. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+
DOCUMENTATION='''
17
+
---
18
+
module: s3_logging
19
+
short_description: Manage logging facility of an s3 bucket in AWS
20
+
description:
21
+
- Manage logging facility of an s3 bucket in AWS
22
+
version_added: "2.0"
23
+
author: Rob White (@wimnat)
24
+
options:
25
+
name:
26
+
description:
27
+
- "Name of the s3 bucket."
28
+
required: true
29
+
default: null
30
+
region:
31
+
description:
32
+
- "AWS region to create the bucket in. If not set then the value of the AWS_REGION and EC2_REGION environment variables are checked, followed by the aws_region and ec2_region settings in the Boto config file. If none of those are set the region defaults to the S3 Location: US Standard."
33
+
required: false
34
+
default: null
35
+
state:
36
+
description:
37
+
- "Enable or disable logging."
38
+
required: false
39
+
default: present
40
+
choices: [ 'present', 'absent' ]
41
+
target_bucket:
42
+
description:
43
+
- "The bucket to log to."
44
+
required: true
45
+
default: null
46
+
target_prefix:
47
+
description:
48
+
- "The prefix that should be prepended to the generated log files written to the target_bucket."
49
+
required: false
50
+
default: no
51
+
52
+
extends_documentation_fragment: aws
53
+
'''
54
+
55
+
EXAMPLES='''
56
+
# Note: These examples do not set authentication details, see the AWS Guide for details.
57
+
58
+
- name: Enable logging of s3 bucket mywebsite.com to s3 bucket mylogs
0 commit comments