<commit_before>provider "aws" {
  region = "eu-west-1"
}

resource "aws_instance" "jenkins" {
  ami                     = var.ami_id
  disable_api_termination = true # prevent this instance from being destroyed from the console
  instance_type           = var.instance_type
  iam_instance_profile    = var.jenkins_instance_profile
  key_name                = var.jenkins_public_key_name
  vpc_security_group_ids  = [aws_security_group.jenkins_instance_security_group.id]

  tags = {
    Name = var.name
  }
}

resource "aws_eip" "jenkins" {
  vpc = true
}

resource "aws_eip_association" "jenkins_eip_assoc" {
  instance_id   = aws_instance.jenkins.id
  allocation_id = aws_eip.jenkins.id
}

resource "aws_ebs_volume" "jenkins_volume" {
  availability_zone = aws_instance.jenkins.availability_zone
  type              = "gp2"
  size              = 100
  encrypted         = true

  tags = {
    Name      = "jenkins data"
    Size      = "100 GiB"
    Encrypted = "true"
  }
}

resource "aws_volume_attachment" "jenkins_ebs_att" {
  device_name = "/dev/xvdf"
  volume_id   = aws_ebs_volume.jenkins_volume.id
  instance_id = aws_instance.jenkins.id
}

<commit_msg>Set larger size for root volume.<commit_after>provider "aws" {
  region = "eu-west-1"
}

resource "aws_instance" "jenkins" {
  ami                     = var.ami_id
  disable_api_termination = true # prevent this instance from being destroyed from the console
  instance_type           = var.instance_type
  iam_instance_profile    = var.jenkins_instance_profile
  key_name                = var.jenkins_public_key_name
  vpc_security_group_ids  = [aws_security_group.jenkins_instance_security_group.id]

  tags = {
    Name = var.name
  }
  root_block_device {
    volume_size = "32"
  }
}

resource "aws_eip" "jenkins" {
  vpc = true
}

resource "aws_eip_association" "jenkins_eip_assoc" {
  instance_id   = aws_instance.jenkins.id
  allocation_id = aws_eip.jenkins.id
}

resource "aws_ebs_volume" "jenkins_volume" {
  availability_zone = aws_instance.jenkins.availability_zone
  type              = "gp2"
  size              = 100
  encrypted         = true

  tags = {
    Name      = "jenkins data"
    Size      = "100 GiB"
    Encrypted = "true"
  }
}

resource "aws_volume_attachment" "jenkins_ebs_att" {
  device_name = "/dev/xvdf"
  volume_id   = aws_ebs_volume.jenkins_volume.id
  instance_id = aws_instance.jenkins.id
}


{'fraction_non_alphanumeric': 0.0860484544695071, 'fraction_numerical': 0.007518796992481203, 'mean_word_length': 2.9070146818923326, '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': '3819657', 'n_tokens_mistral': 859, 'n_tokens_neox': 842, 'n_words': 152}