<commit_before>module "p2_compute" {
  source = "git::https://github.com/wellcometrust/terraform.git//ec2/prebuilt/dlami?ref=v11.0.0"
  name   = "jupyter-p2"

  key_name    = "${var.key_name}"
  bucket_name = "${var.s3_bucket_name}"

  instance_type = "p2.xlarge"
  spot_price    = "0.5"

  default_environment = "tensorflow_p36"

  vpc_id      = "${var.vpc_id}"
  subnet_list = "${var.subnets}"

  controlled_access_cidr_ingress = ["${var.controlled_access_cidr_ingress}"]
}

module "t2_compute" {
  source = "git::https://github.com/wellcometrust/terraform.git//ec2/prebuilt/dlami?ref=v11.0.0"
  name   = "jupyter-t2-${var.namespace}"

  key_name    = "${var.key_name}"
  bucket_name = "${var.s3_bucket_name}"

  spot_price = "0.4"

  default_environment = "tensorflow_p36"

  vpc_id      = "${var.vpc_id}"
  subnet_list = "${var.subnets}"

  controlled_access_cidr_ingress = ["${var.controlled_access_cidr_ingress}"]
}<commit_msg>Give access to the EFS mount in the data science VMs<commit_after>module "p2_compute" {
  source = "git::https://github.com/wellcometrust/terraform.git//ec2/prebuilt/dlami?ref=v11.7.1"
  name   = "jupyter-p2-${var.namespace}"

  key_name    = "${var.key_name}"
  bucket_name = "${var.s3_bucket_name}"

  instance_type = "p2.xlarge"
  spot_price    = "0.5"

  default_environment = "tensorflow_p36"

  vpc_id      = "${var.vpc_id}"
  subnet_list = "${var.subnets}"

  custom_security_groups = [
    "${aws_security_group.efs_security_group.id}",
  ]

  efs_mount_id = "${module.efs.efs_id}"

  controlled_access_cidr_ingress = ["${var.controlled_access_cidr_ingress}"]
}

module "t2_compute" {
  source = "git::https://github.com/wellcometrust/terraform.git//ec2/prebuilt/dlami?ref=v11.7.1"
  name   = "jupyter-t2-${var.namespace}"

  key_name    = "${var.key_name}"
  bucket_name = "${var.s3_bucket_name}"

  spot_price = "0.4"

  default_environment = "tensorflow_p36"

  vpc_id      = "${var.vpc_id}"
  subnet_list = "${var.subnets}"

  custom_security_groups = [
    "${aws_security_group.efs_security_group.id}",
  ]

  efs_mount_id = "${module.efs.efs_id}"

  controlled_access_cidr_ingress = ["${var.controlled_access_cidr_ingress}"]
}
{'fraction_non_alphanumeric': 0.16329346826126956, 'fraction_numerical': 0.022999080036798528, 'mean_word_length': 4.240963855421687, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '5988043', 'n_tokens_mistral': 921, 'n_tokens_neox': 884, 'n_words': 102}