Skip to content

Commit 340116a

Browse files
authored
[PRM-624] Remove logging_config block from "aws_cloudfront_distribution" (#528)
1 parent 1fc872c commit 340116a

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

infrastructure/modules/cloudfront/main.tf

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ resource "aws_cloudfront_distribution" "distribution" {
4949
}
5050
}
5151
web_acl_id = var.web_acl_id
52-
53-
dynamic "logging_config" {
54-
for_each = var.log_bucket_id != "" ? [1] : []
55-
content {
56-
bucket = var.log_bucket_id
57-
prefix = "cloudfront/"
58-
}
59-
}
6052
}
6153

6254
resource "aws_cloudfront_distribution" "distribution_with_secondary_bucket" {
@@ -104,15 +96,6 @@ resource "aws_cloudfront_distribution" "distribution_with_secondary_bucket" {
10496
event_type = "origin-request"
10597
lambda_arn = var.qualifed_arn
10698
}
107-
108-
}
109-
110-
dynamic "logging_config" {
111-
for_each = var.log_bucket_id != "" ? [1] : []
112-
content {
113-
bucket = var.log_bucket_id
114-
prefix = "cloudfront/"
115-
}
11699
}
117100

118101
viewer_certificate {
@@ -126,7 +109,6 @@ resource "aws_cloudfront_distribution" "distribution_with_secondary_bucket" {
126109
}
127110
}
128111
web_acl_id = var.web_acl_id
129-
130112
}
131113

132114

infrastructure/modules/dynamo_db/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module "document_reference_dynamodb_table" {
106106
| <a name="input_hash_key"></a> [hash\_key](#input\_hash\_key) | Primary partition key for the table. | `string` | `null` | no |
107107
| <a name="input_owner"></a> [owner](#input\_owner) | Identifies the team or person responsible for the resource (used for tagging). | `string` | n/a | yes |
108108
| <a name="input_point_in_time_recovery_enabled"></a> [point\_in\_time\_recovery\_enabled](#input\_point\_in\_time\_recovery\_enabled) | Enables PITR for backups. | `bool` | `false` | no |
109-
| <a name="input_sort_key"></a> [sort\_key](#input\_sort\_key) | Optional sort key for composite primary key. | `string` | `null` | no |
109+
| <a name="input_sort_key"></a> [sort\_key](#input\_sort\_key) | Optional range/sort key for composite primary key. | `string` | `null` | no |
110110
| <a name="input_stream_enabled"></a> [stream\_enabled](#input\_stream\_enabled) | Whether DynamoDB Streams are enabled. | `bool` | `false` | no |
111111
| <a name="input_stream_view_type"></a> [stream\_view\_type](#input\_stream\_view\_type) | Type of stream view (e.g., OLD\_IMAGE). | `string` | `"NEW_AND_OLD_IMAGES"` | no |
112112
| <a name="input_table_name"></a> [table\_name](#input\_table\_name) | Name of the DynamoDB table. | `string` | `null` | no |

0 commit comments

Comments
 (0)