<commit_before>resource "aws_s3_bucket" "droplets-s3" {
  bucket = "${var.env}-cf-droplets"
  acl = "private"
  force_destroy = "true"
}

resource "aws_s3_bucket" "buildpacks-s3" {
  bucket = "${var.env}-cf-buildpacks"
  acl = "private"
  force_destroy = "true"
}

resource "aws_s3_bucket" "packages-s3" {
  bucket = "${var.env}-cf-packages"
  acl = "private"
  force_destroy = "true"
}

resource "aws_s3_bucket" "resources-s3" {
  bucket = "${var.env}-cf-resources"
  acl = "private"
  force_destroy = "true"
}

resource "aws_s3_bucket" "test-artifacts" {
    bucket = "gds-paas-${var.env}-test-artifacts"
    acl = "private"
    force_destroy = "true"

    lifecycle_rule {
      enabled = true
      prefix = ""
      expiration {
        days = 7
      }
    }
}
<commit_msg>TF: enable versioning for CF buckets<commit_after>resource "aws_s3_bucket" "droplets-s3" {
  bucket = "${var.env}-cf-droplets"
  acl = "private"
  force_destroy = "true"
  versioning {
    enabled = true
  }
}

resource "aws_s3_bucket" "buildpacks-s3" {
  bucket = "${var.env}-cf-buildpacks"
  acl = "private"
  force_destroy = "true"
  versioning {
    enabled = true
  }
}

resource "aws_s3_bucket" "packages-s3" {
  bucket = "${var.env}-cf-packages"
  acl = "private"
  force_destroy = "true"
  versioning {
    enabled = true
  }
}

resource "aws_s3_bucket" "resources-s3" {
  bucket = "${var.env}-cf-resources"
  acl = "private"
  force_destroy = "true"
  versioning {
    enabled = true
  }
}

resource "aws_s3_bucket" "test-artifacts" {
    bucket = "gds-paas-${var.env}-test-artifacts"
    acl = "private"
    force_destroy = "true"

    lifecycle_rule {
      enabled = true
      prefix = ""
      expiration {
        days = 7
      }
    }
}

{'fraction_non_alphanumeric': 0.15060588574725908, 'fraction_numerical': 0.01154068090017311, 'mean_word_length': 2.958904109589041, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '227041', 'n_tokens_mistral': 677, 'n_tokens_neox': 657, 'n_words': 121}