From d73a84e8be1dd725f4555dd17a38f2855276b449 Mon Sep 17 00:00:00 2001 From: Michael Manganiello Date: Mon, 14 Jun 2021 23:33:46 -0300 Subject: [PATCH] Remove unused variable abort_incomplete_multipart_upload_days The `abort_incomplete_multipart_upload_days` variable isn't being used since the introduction of `lifecycle_rules` in https://github.com/cloudposse/terraform-aws-s3-bucket/pull/85. --- README.md | 1 - docs/terraform.md | 1 - examples/complete/variables.tf | 8 +------- variables.tf | 8 +------- 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 94ca7926..afc7f11f 100644 --- a/README.md +++ b/README.md @@ -211,7 +211,6 @@ Available targets: | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [abort\_incomplete\_multipart\_upload\_days](#input\_abort\_incomplete\_multipart\_upload\_days) | Maximum time (in days) that you want to allow multipart uploads to remain in progress | `number` | `5` | no | | [acl](#input\_acl) | The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. We recommend `private` to avoid exposing sensitive information. Conflicts with `grants`. | `string` | `"private"` | no | | [additional\_tag\_map](#input\_additional\_tag\_map) | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. | `map(string)` | `{}` | no | | [allow\_encrypted\_uploads\_only](#input\_allow\_encrypted\_uploads\_only) | Set to `true` to prevent uploads of unencrypted objects to S3 bucket | `bool` | `false` | no | diff --git a/docs/terraform.md b/docs/terraform.md index ea3534ac..f1236bf8 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -39,7 +39,6 @@ | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [abort\_incomplete\_multipart\_upload\_days](#input\_abort\_incomplete\_multipart\_upload\_days) | Maximum time (in days) that you want to allow multipart uploads to remain in progress | `number` | `5` | no | | [acl](#input\_acl) | The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. We recommend `private` to avoid exposing sensitive information. Conflicts with `grants`. | `string` | `"private"` | no | | [additional\_tag\_map](#input\_additional\_tag\_map) | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. | `map(string)` | `{}` | no | | [allow\_encrypted\_uploads\_only](#input\_allow\_encrypted\_uploads\_only) | Set to `true` to prevent uploads of unencrypted objects to S3 bucket | `bool` | `false` | no | diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index 21562d42..30a75201 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -182,12 +182,6 @@ variable "expiration_days" { description = "Number of days after which to expunge the objects" } -variable "abort_incomplete_multipart_upload_days" { - type = number - default = 5 - description = "Maximum time (in days) that you want to allow multipart uploads to remain in progress" -} - variable "lifecycle_tags" { type = map(string) description = "Tags filter. Used to manage object lifecycle events" @@ -232,4 +226,4 @@ variable "object_lock_configuration" { }) default = null description = "A configuration for S3 object locking. With S3 Object Lock, you can store objects using a `write once, read many` (WORM) model. Object Lock can help prevent objects from being deleted or overwritten for a fixed amount of time or indefinitely." -} \ No newline at end of file +} diff --git a/variables.tf b/variables.tf index 295f484e..e90dbdcd 100644 --- a/variables.tf +++ b/variables.tf @@ -136,12 +136,6 @@ variable "cors_rule_inputs" { description = "Specifies the allowed headers, methods, origins and exposed headers when using CORS on this bucket" } -variable "abort_incomplete_multipart_upload_days" { - type = number - default = 5 - description = "Maximum time (in days) that you want to allow multipart uploads to remain in progress" -} - variable "block_public_acls" { type = bool default = true @@ -235,4 +229,4 @@ variable "website_inputs" { default = null description = "Specifies the static website hosting configuration object." -} \ No newline at end of file +}