diff --git a/main.tf b/main.tf index 07190deb..371dad6c 100644 --- a/main.tf +++ b/main.tf @@ -58,6 +58,11 @@ resource "aws_s3_bucket_versioning" "default" { } } +moved { + from = aws_s3_bucket_logging.default[0] + to = aws_s3_bucket_logging.default["enabled"] +} + resource "aws_s3_bucket_logging" "default" { for_each = toset(local.enabled && length(var.logging) > 0 ? ["enabled"] : [])