-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Description
object_lock_enabled is deprecated https://registry.terraform.io/providers/-/aws/6.33.0/docs/resources/s3_bucket
Latest version of module must remove the usage of object_lock_enabled inside aws_s3_bucket.
Just commenting it would help and it will not break any usage. people can continue to use var.object_lock_enabled to enable to disable the object lock. As per AWS document object lock cannot be disabled but default retention period can be disabled. This would mimic the AWS behaviour and prevent the deletion of s3 bucket in case user choose to update var object_lock_enabled = false / true
If your request is for a new feature, please use the Feature request template.
- โ I have searched the open/closed issues and my issue is not listed.
โ ๏ธ Note
Before you submit an issue, please perform the following first:
- Remove the local
.terraformdirectory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/ - Re-initialize the project root to pull down modules:
terraform init - Re-attempt your terraform plan or apply and check if the issue still persists
Versions
-
Module version [Required]:
-
Terraform version:
- Provider version(s):
Reproduction Code [Required]
Steps to reproduce the behavior: