terraform.aws.best-practice.aws-s3-bucket-versioning-not-enabled.aws-s3-bucket-versioning-not-enabled has false positive on v5+ of the Terraform provider for AWS #3497
Labels
bug
Something isn't working
Describe the bug
The rule
terraform.aws.best-practice.aws-s3-bucket-versioning-not-enabled.aws-s3-bucket-versioning-not-enabled
checks for object versioning being enabled based on theversioning
block in theaws_s3_bucket
resource being configured.However, as of v5 of the Terraform provider, many configurations that once were blocks within the main
aws_s3_bucket
resource had separate resources created for them, with the block method deprecated, and this includes versioning. As a result, enabling versioning via a non-deprecated means will result in a false positive. This may also impact other rules related to S3 that are impacted by this change.To Reproduce
Expected behavior
A bucket with versioning enabled via
aws_s3_bucket_versioning
should not trigger a false positive saying versioning isn't configured.Priority
How important is this to you?
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: