<commit_before>module "ami" {
  source = "github.com/terraform-community-modules/tf_aws_ubuntu_ami"
  region = "${var.region}"
  distribution = "xenial"
  virttype = "hvm"
  storagetype = "ebs-ssd"
}

resource "aws_instance" "worker" {
  count = "${var.servers}"
  ami = "${module.ami.ami_id}"
  iam_instance_profile = "${var.iam_instance_profile_id}"
  instance_type = "${var.instance_type}"
  subnet_id = "${element(var.subnet_ids, count.index)}"
  associate_public_ip_address = true # Instances have public, dynamic IP
  source_dest_check = false # TODO Required??
  availability_zone = "${element(var.azs, count.index)}"
  vpc_security_group_ids = ["${var.security_group_id}"]
  key_name = "${var.key_name}"

  tags {
    ansible_managed = "yes",
    kubernetes_role = "worker"
    terraform_module = "minion"
    Name = "kube-minion"
    minion_role = "${var.role}"
  }

  ephemeral_block_device {
      device_name = "/dev/nvme0n1"
      virtual_name = "ephemeral0"
  }
}<commit_msg>Adding storage to nvme instance<commit_after>module "ami" {
  source = "github.com/terraform-community-modules/tf_aws_ubuntu_ami"
  region = "${var.region}"
  distribution = "xenial"
  virttype = "hvm"
  storagetype = "ebs-ssd"
}

resource "aws_instance" "worker" {
  count = "${var.servers}"
  ami = "${module.ami.ami_id}"
  iam_instance_profile = "${var.iam_instance_profile_id}"
  instance_type = "${var.instance_type}"
  subnet_id = "${element(var.subnet_ids, count.index)}"
  associate_public_ip_address = true # Instances have public, dynamic IP
  source_dest_check = false # TODO Required??
  availability_zone = "${element(var.azs, count.index)}"
  vpc_security_group_ids = ["${var.security_group_id}"]
  key_name = "${var.key_name}"

  tags {
    ansible_managed = "yes",
    kubernetes_role = "worker"
    terraform_module = "minion"
    Name = "kube-minion"
    minion_role = "${var.role}"
  }

  ephemeral_block_device {
      device_name = "/dev/sdf"#"/dev/nvme0n1"
      virtual_name = "ephemeral0"
  }
}
{'fraction_non_alphanumeric': 0.1469855505729945, 'fraction_numerical': 0.0029895366218236174, 'mean_word_length': 4.298153034300792, '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': '407262', 'n_tokens_mistral': 749, 'n_tokens_neox': 731, 'n_words': 124}