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
Copy file name to clipboardExpand all lines: README.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,21 +24,21 @@ This module makes use of the AWS CLI to optionally create an Athena table.
24
24
25
25
If you would rather you can follow the instructions Amazon provides [here](https://docs.aws.amazon.com/athena/latest/ug/application-load-balancer-logs.html) to set this up yourself.
26
26
27
-
<!--BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK-->
| <aname="input_bucket_name"></a> [bucket\_name](#input\_bucket\_name)| Name to apply to bucket (use `bucket_name` or `bucket_suffix`) |`string`|`null`| no |
77
78
| <aname="input_bucket_suffix"></a> [bucket\_suffix](#input\_bucket\_suffix)| Suffix to apply to the bucket (use `bucket_name` or `bucket_suffix`). When using `bucket_suffix`, the bucket name will be `[ACCOUNT_ID]-[REGION]-s3logging-[BUCKET_SUFFIX].`|`string`|`"elblogging"`| no |
78
79
| <aname="input_create_athena_query"></a> [create\_athena\_query](#input\_create\_athena\_query)| Create an Athena table for querying ALB logs. Uses the aws cli |`bool`|`false`| no |
79
-
| <aname="input_kms_key_id"></a> [kms\_key\_id](#input\_kms\_key\_id)| KMS key to encrypt bucket with. |`string`|`null`| no |
80
-
| <aname="input_lifecycle_rules"></a> [lifecycle\_rules](#input\_lifecycle\_rules)| lifecycle rules to apply to the bucket | <pre>list(object(<br> {<br> id = string<br> enabled = bool<br> prefix = string<br> expiration = number<br> noncurrent_version_expiration = number<br> }))</pre> |`[]`| no |
80
+
| <aname="input_lifecycle_rules"></a> [lifecycle\_rules](#input\_lifecycle\_rules)| lifecycle rules to apply to the bucket | <pre>list(object(<br/> {<br/> id = string<br/> enabled = bool<br/> prefix = string<br/> expiration = number<br/> noncurrent_version_expiration = number<br/> }))</pre> |`[]`| no |
81
81
| <aname="input_s3_access_logging_bucket"></a> [s3\_access\_logging\_bucket](#input\_s3\_access\_logging\_bucket)| Optional target for S3 access logging |`string`|`null`| no |
82
82
| <aname="input_s3_access_logging_prefix"></a> [s3\_access\_logging\_prefix](#input\_s3\_access\_logging\_prefix)| Optional target prefix for S3 access logging (only used if `s3_access_logging_bucket` is set) |`string`|`null`| no |
83
+
| <aname="input_source_accounts"></a> [source\_accounts](#input\_source\_accounts)| List of AWS account IDs to restrict log delivery to. Defaults to caller account. Set to an empty list to allow any account. |`list(string)`| <pre>[<br/> "self"<br/>]</pre> | no |
84
+
| <aname="input_source_organizations"></a> [source\_organizations](#input\_source\_organizations)| List of AWS Organization IDs to restrict log delivery to. Overrides `source_accounts`. |`list(string)`|`[]`| no |
83
85
| <aname="input_tags"></a> [tags](#input\_tags)| Tags to add to supported resources |`map(string)`|`{}`| no |
86
+
| <aname="input_use_legacy_elb_policy"></a> [use\_legacy\_elb\_policy](#input\_use\_legacy\_elb\_policy)| Use the legacy ELB policy statement from pre-2022. |`bool`|`false`| no |
84
87
| <aname="input_versioning_enabled"></a> [versioning\_enabled](#input\_versioning\_enabled)| Whether or not to use versioning on the bucket. This can be useful for audit purposes since objects in a logging bucket should not be updated. |`bool`|`true`| no |
85
88
86
89
## Outputs
@@ -91,4 +94,4 @@ No modules.
91
94
| <aname="output_s3_bucket_arn"></a> [s3\_bucket\_arn](#output\_s3\_bucket\_arn)| The ARN of the bucket |
92
95
| <aname="output_s3_bucket_domain_name"></a> [s3\_bucket\_domain\_name](#output\_s3\_bucket\_domain\_name)| The domain name of the bucket |
93
96
| <aname="output_s3_bucket_name"></a> [s3\_bucket\_name](#output\_s3\_bucket\_name)| The name of the bucket |
description="List of AWS account IDs to restrict log delivery to. Defaults to caller account. Set to an empty list to allow any account."
49
+
type=list(string)
50
+
}
51
+
52
+
variable"source_organizations" {
53
+
default=[]
54
+
description="List of AWS Organization IDs to restrict log delivery to. Overrides `source_accounts`."
55
+
type=list(string)
56
+
}
57
+
52
58
variable"tags" {
53
59
default={}
54
60
description="Tags to add to supported resources"
55
61
type=map(string)
56
62
}
57
63
64
+
variable"use_legacy_elb_policy" {
65
+
default=false
66
+
description="Use the legacy ELB policy statement from pre-2022."
67
+
type=bool
68
+
}
69
+
58
70
variable"versioning_enabled" {
59
71
default=true
60
72
description="Whether or not to use versioning on the bucket. This can be useful for audit purposes since objects in a logging bucket should not be updated."
0 commit comments