enable bucket versioning
OpenTofu used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place OpenTofu will perform the following actions: # aws_s3_bucket_lifecycle_configuration.cache will be updated in-place ~ resource "aws_s3_bucket_lifecycle_configuration" "cache" { id = "nix-cache" # (3 unchanged attributes hidden) + rule { + id = "Non-current Versions" + status = "Enabled" + noncurrent_version_expiration { + noncurrent_days = 30 } } # (1 unchanged block hidden) } # aws_s3_bucket_versioning.cache will be created + resource "aws_s3_bucket_versioning" "cache" { + bucket = "nix-cache" + id = (known after apply) + region = "us-east-1" + versioning_configuration { + mfa_delete = (known after apply) + status = "Enabled" } } Plan: 1 to add, 1 to change, 0 to destroy. ╷