Skip to content

Commit 992304f

Browse files
committed
rename variables
1 parent 46d9b49 commit 992304f

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ No modules.
260260
| <a name="input_lifecycle_rule"></a> [lifecycle\_rule](#input\_lifecycle\_rule) | List of maps containing configuration of object lifecycle management. | `any` | `[]` | no |
261261
| <a name="input_location_type"></a> [location\_type](#input\_location\_type) | Location type. Valid values: `AvailabilityZone` or `LocalZone` | `string` | `null` | no |
262262
| <a name="input_logging"></a> [logging](#input\_logging) | Map containing access bucket logging configuration. | `any` | `{}` | no |
263-
| <a name="input_metadata_configuration_state"></a> [metadata\_configuration\_state](#input\_metadata\_configuration\_state) | Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values: ENABLED, DISABLED | `string` | `null` | no |
264263
| <a name="input_metadata_encryption_configuration"></a> [metadata\_encryption\_configuration](#input\_metadata\_encryption\_configuration) | Encryption configuration block | `any` | `null` | no |
265-
| <a name="input_metadata_record_expiration"></a> [metadata\_record\_expiration](#input\_metadata\_record\_expiration) | Whether journal table record expiration is enabled or disabled. Valid values: ENABLED, DISABLED | `string` | `null` | no |
266-
| <a name="input_metadata_record_expiration_days"></a> [metadata\_record\_expiration\_days](#input\_metadata\_record\_expiration\_days) | Number of days to retain journal table records | `number` | `null` | no |
264+
| <a name="input_metadata_inventory_table_configuration_state"></a> [metadata\_inventory\_table\_configuration\_state](#input\_metadata\_inventory\_table\_configuration\_state) | Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values: ENABLED, DISABLED | `string` | `null` | no |
265+
| <a name="input_metadata_journal_table_record_expiration"></a> [metadata\_journal\_table\_record\_expiration](#input\_metadata\_journal\_table\_record\_expiration) | Whether journal table record expiration is enabled or disabled. Valid values: ENABLED, DISABLED | `string` | `null` | no |
266+
| <a name="input_metadata_journal_table_record_expiration_days"></a> [metadata\_journal\_table\_record\_expiration\_days](#input\_metadata\_journal\_table\_record\_expiration\_days) | Number of days to retain journal table records | `number` | `null` | no |
267267
| <a name="input_metric_configuration"></a> [metric\_configuration](#input\_metric\_configuration) | Map containing bucket metric configuration. | `any` | `[]` | no |
268268
| <a name="input_object_lock_configuration"></a> [object\_lock\_configuration](#input\_object\_lock\_configuration) | Map containing S3 object locking configuration. | `any` | `{}` | no |
269269
| <a name="input_object_lock_enabled"></a> [object\_lock\_enabled](#input\_object\_lock\_enabled) | Whether S3 bucket should have an Object Lock configuration enabled. | `bool` | `false` | no |

examples/complete/main.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,12 @@ module "s3_bucket" {
376376
}
377377
]
378378

379-
# metadata configuration
380-
# create_metadata_configuration = true
381-
# metadata_configuration_state = "ENABLED"
382-
# metadata_record_expiration = "ENABLED"
383-
# metadata_record_expiration_days = 7
384-
# metadata_encryption_configuration = {
385-
# sse_algorithm = "AES256"
386-
# }
379+
# metadata configuration example
380+
create_metadata_configuration = true
381+
metadata_inventory_table_configuration_state = "ENABLED"
382+
metadata_journal_table_record_expiration = "ENABLED"
383+
metadata_journal_table_record_expiration_days = 7
384+
metadata_encryption_configuration = {
385+
sse_algorithm = "AES256"
386+
}
387387
}

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ resource "aws_s3_bucket_metadata_configuration" "this" {
13641364

13651365
metadata_configuration {
13661366
inventory_table_configuration {
1367-
configuration_state = var.metadata_configuration_state
1367+
configuration_state = var.metadata_inventory_table_configuration_state
13681368

13691369
dynamic "encryption_configuration" {
13701370
for_each = var.metadata_encryption_configuration != null ? [var.metadata_encryption_configuration] : []
@@ -1377,8 +1377,8 @@ resource "aws_s3_bucket_metadata_configuration" "this" {
13771377

13781378
journal_table_configuration {
13791379
record_expiration {
1380-
days = var.metadata_record_expiration_days
1381-
expiration = var.metadata_record_expiration
1380+
days = var.metadata_journal_table_record_expiration_days
1381+
expiration = var.metadata_journal_table_record_expiration
13821382
}
13831383
}
13841384
}

variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ variable "create_metadata_configuration" {
389389
default = false
390390
}
391391

392-
variable "metadata_configuration_state" {
392+
variable "metadata_inventory_table_configuration_state" {
393393
description = "Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values: ENABLED, DISABLED"
394394
type = string
395395
default = null
@@ -401,13 +401,13 @@ variable "metadata_encryption_configuration" {
401401
default = null
402402
}
403403

404-
variable "metadata_record_expiration_days" {
404+
variable "metadata_journal_table_record_expiration_days" {
405405
description = "Number of days to retain journal table records"
406406
type = number
407407
default = null
408408
}
409409

410-
variable "metadata_record_expiration" {
410+
variable "metadata_journal_table_record_expiration" {
411411
description = "Whether journal table record expiration is enabled or disabled. Valid values: ENABLED, DISABLED"
412412
type = string
413413
default = null

wrappers/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ module "wrapper" {
5252
lifecycle_rule = try(each.value.lifecycle_rule, var.defaults.lifecycle_rule, [])
5353
location_type = try(each.value.location_type, var.defaults.location_type, null)
5454
logging = try(each.value.logging, var.defaults.logging, {})
55-
metadata_configuration_state = try(each.value.metadata_configuration_state, var.defaults.metadata_configuration_state, null)
5655
metadata_encryption_configuration = try(each.value.metadata_encryption_configuration, var.defaults.metadata_encryption_configuration, null)
57-
metadata_record_expiration = try(each.value.metadata_record_expiration, var.defaults.metadata_record_expiration, null)
58-
metadata_record_expiration_days = try(each.value.metadata_record_expiration_days, var.defaults.metadata_record_expiration_days, null)
56+
metadata_inventory_table_configuration_state = try(each.value.metadata_inventory_table_configuration_state, var.defaults.metadata_inventory_table_configuration_state, null)
57+
metadata_journal_table_record_expiration = try(each.value.metadata_journal_table_record_expiration, var.defaults.metadata_journal_table_record_expiration, null)
58+
metadata_journal_table_record_expiration_days = try(each.value.metadata_journal_table_record_expiration_days, var.defaults.metadata_journal_table_record_expiration_days, null)
5959
metric_configuration = try(each.value.metric_configuration, var.defaults.metric_configuration, [])
6060
object_lock_configuration = try(each.value.object_lock_configuration, var.defaults.object_lock_configuration, {})
6161
object_lock_enabled = try(each.value.object_lock_enabled, var.defaults.object_lock_enabled, false)

0 commit comments

Comments
 (0)