Hello Languages Team
Versioning in aws_s3_bucket
ressource is deprecated as it can now be configured in its own ressource (aws_s3_bucket_versioning
) as stated here.
Sadly terraform:S6252 does not recognise this new approach and expects the deprecated notation in order to have a compliant solution. For the time being both options should be valid until the versioning notation in aws_s3_bucket
is removed
Reproducer in SQ 9.4.54424
:
resource "aws_s3_bucket_versioning" "versioning_example" {
bucket = aws_s3_bucket.example_bucket.id
versioning_configuration {
status = "Enabled"
}
}
resource "aws_s3_bucket" "example_bucket" {
bucket = "test-bucket"
}
Thanks