<commit_before># s3 bucket requires gloable unique bucket name, make sure set a prefix bucket 
# to make the bucket name unique

variable "bucket_prefix" {
    default = "mycluster"
}

# s3 bucket for cloudinit files
resource "aws_s3_bucket" "cloudinit" {
    bucket = "${var.bucket_prefix}-cloudinit"
    acl = "private"
    force_destroy = true
    tags {
        Name = "Cloudinit"
    }
}
# s3 bucket for application configuration,Shared by all cluster nodes
resource "aws_s3_bucket" "config" {
    bucket = "${var.bucket_prefix}-config"
    force_destroy = true
    acl = "private"
    tags {
        Name = "Config"
    }
}

# s3 bucket for data backup
resource "aws_s3_bucket" "data" {
    bucket = "${var.bucket_prefix}-logs"
    force_destroy = true
    acl = "private"
    tags {
        Name = "Logs"
    }
}

# s3 bucket for log data backup
resource "aws_s3_bucket" "logs" {
    bucket = "${var.bucket_prefix}-logs"
    force_destroy = true
    acl = "private"
    tags {
        Name = "Logs"
    }
}<commit_msg>fix s3.tf bucket name repeating bug<commit_after># s3 bucket requires gloable unique bucket name, make sure set a prefix bucket 
# to make the bucket name unique

variable "bucket_prefix" {
    default = "mycluster"
}

# s3 bucket for cloudinit files
resource "aws_s3_bucket" "cloudinit" {
    bucket = "${var.bucket_prefix}-cloudinit"
    acl = "private"
    force_destroy = true
    tags {
        Name = "Cloudinit"
    }
}
# s3 bucket for application configuration,Shared by all cluster nodes
resource "aws_s3_bucket" "config" {
    bucket = "${var.bucket_prefix}-config"
    force_destroy = true
    acl = "private"
    tags {
        Name = "Config"
    }
}

# s3 bucket for data backup
resource "aws_s3_bucket" "data" {
    bucket = "${var.bucket_prefix}-data"
    force_destroy = true
    acl = "private"
    tags {
        Name = "Date"
    }
}

# s3 bucket for log data backup
resource "aws_s3_bucket" "logs" {
    bucket = "${var.bucket_prefix}-logs"
    force_destroy = true
    acl = "private"
    tags {
        Name = "Logs"
    }
}
{'fraction_non_alphanumeric': 0.10666023166023166, 'fraction_numerical': 0.00916988416988417, 'mean_word_length': 2.8603351955307263, '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': '3464425', 'n_tokens_mistral': 675, 'n_tokens_neox': 664, 'n_words': 199}