resource/aws_s3_bucket: Add top-level object_lock_enabled
parameter
#23549
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/s3
Issues and PRs that pertain to the s3 service.
Milestone
Description
As part of the v4.0 S3 refactoring, we deprecated all of the fields of the block
object_lock_configuration
other thanobject_lock_enabled
. In the AWS API, theCreateBucketInput
struct has a parameterObjectLockEnabledForBucket
which we set whenobject_lock_configuration.object_lock_enabled
is set.With the pre-v4.0 design, this avoided setting
object_lock_enabled
twice, however, with the v4.0 design, we can remove the block and move the parameter to the top level. The entireobject_lock_configuration
block can be deprecated.Pre-v4.0 configuration
v4.0 design
###Affected Resource
Potential Terraform Configuration
Move the parameter
object_lock_enabled
to the top level. I.e.The text was updated successfully, but these errors were encountered: