Skip to content

Commit 2b89754

Browse files
authored
Merge pull request #137 from schubergphilis/fvb/logging-tweaks
fix: Fix logging bucket arn
2 parents abeffdc + 20a2a2a commit 2b89754

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ As opposed to other MCAF modules, this module does not provide a specific resour
104104
| <a name="input_ipv6_enabled"></a> [ipv6\_enabled](#input\_ipv6\_enabled) | Whether IPv6 is enabled for the distribution | `bool` | `false` | no |
105105
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | The ARN of the KMS key used for encryption | `string` | `null` | no |
106106
| <a name="input_lambda_function_association"></a> [lambda\_function\_association](#input\_lambda\_function\_association) | A config block that triggers a lambda function with specific actions | <pre>list(object({<br/> event_type = string<br/> include_body = bool<br/> lambda_arn = string<br/> }))</pre> | `[]` | no |
107-
| <a name="input_logging"></a> [logging](#input\_logging) | Logging configuration, logging is disabled by default. | <pre>object({<br/> target_bucket_arn = string<br/> target_prefix = string<br/> output_format = optional(string, "parquet")<br/> })</pre> | `null` | no |
107+
| <a name="input_logging"></a> [logging](#input\_logging) | Logging configuration, logging is disabled by default. | <pre>object({<br/> target_bucket = string<br/> target_prefix = string<br/> output_format = optional(string, "parquet")<br/> })</pre> | `null` | no |
108108
| <a name="input_login_uri_path"></a> [login\_uri\_path](#input\_login\_uri\_path) | Optional path to the login URL | `string` | `null` | no |
109109
| <a name="input_max_ttl"></a> [max\_ttl](#input\_max\_ttl) | Maximum amount of time (in seconds) that an object is in a CloudFront cache | `number` | `86400` | no |
110110
| <a name="input_min_ttl"></a> [min\_ttl](#input\_min\_ttl) | Minimum amount of time that you want objects to stay in CloudFront caches | `number` | `0` | no |

logging.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ resource "aws_cloudwatch_log_delivery_destination" "access_logs" {
1717
tags = var.tags
1818

1919
delivery_destination_configuration {
20-
destination_resource_arn = var.logging.target_bucket_arn
20+
destination_resource_arn = "arn:aws:s3:::${var.logging.target_bucket}"
2121
}
2222
}
2323

variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ variable "lambda_function_association" {
230230

231231
variable "logging" {
232232
type = object({
233-
target_bucket_arn = string
234-
target_prefix = string
235-
output_format = optional(string, "parquet")
233+
target_bucket = string
234+
target_prefix = string
235+
output_format = optional(string, "parquet")
236236
})
237237
default = null
238238
description = "Logging configuration, logging is disabled by default."

0 commit comments

Comments
 (0)