<commit_before>## Provisions basic autoscaling group
module "docker-registry" {
  source = "git::https://github.com/stakater/blueprint-instance-pool-aws.git//modules/instance-pool"

  # Resource tags
  name = "${var.stack_name}-ga-registry"

  # VPC parameters
  vpc_id  = "${module.network.vpc_id}"
  vpc_cidr  = "${module.network.vpc_cidr}"
  subnets = "${module.network.private_app_subnet_ids}"
  region  = "${var.aws_account["default_region"]}"

  # LC parameters
  ami              = "${var.ami}"
  instance_type    = "t2.small"
  iam_assume_role_policy = "${file("./policy/assume-role-policy.json")}"
  iam_role_policy  = "${data.template_file.docker-registry-policy.rendered}"
  user_data        = "${data.template_file.docker-registry-bootstrap-user-data.rendered}"
  key_name         = "docker-registry"
  root_vol_size    = 30
  data_ebs_device_name  = "/dev/sdh"  # mount to /opt/data (for registry data)
  data_ebs_vol_size     = 100
  logs_ebs_device_name  = "/dev/sdg"
  logs_ebs_vol_size     = 12

  # ASG parameters
  max_size         = "1"
  min_size         = "1"
  min_elb_capacity = "1"
  load_balancers   = "${aws_elb.docker-registry-elb.id}"
}

## Template files
data "template_file" "docker-registry-policy" {
  template = "${file("./policy/docker-registry-role-policy.json")}"

  vars {
    config_bucket_arn = "${module.config-bucket.arn}"
    cloudinit_bucket_arn = "${module.cloudinit-bucket.arn}"
  }
}

data "template_file" "docker-registry-bootstrap-user-data" {
  template = "${file("./user-data/bootstrap-user-data.sh.tmpl")}"

  vars {
    stack_name = "${var.stack_name}"
    config_bucket_name = "${module.config-bucket.bucket_name}"
    cloudinit_bucket_name = "${module.cloudinit-bucket.bucket_name}"<commit_msg>Update docker registry volume sizes<commit_after>## Provisions basic autoscaling group
module "docker-registry" {
  source = "git::https://github.com/stakater/blueprint-instance-pool-aws.git//modules/instance-pool"

  # Resource tags
  name = "${var.stack_name}-ga-registry"

  # VPC parameters
  vpc_id  = "${module.network.vpc_id}"
  vpc_cidr  = "${module.network.vpc_cidr}"
  subnets = "${module.network.private_app_subnet_ids}"
  region  = "${var.aws_account["default_region"]}"

  # LC parameters
  ami              = "${var.ami}"
  instance_type    = "t2.small"
  iam_assume_role_policy = "${file("./policy/assume-role-policy.json")}"
  iam_role_policy  = "${data.template_file.docker-registry-policy.rendered}"
  user_data        = "${data.template_file.docker-registry-bootstrap-user-data.rendered}"
  key_name         = "docker-registry"
  root_vol_size    = 50
  data_ebs_device_name  = "/dev/sdh"  # mount to /opt/data (for registry data)
  data_ebs_vol_size     = 100
  logs_ebs_device_name  = "/dev/sdg"
  logs_ebs_vol_size     = 20

  # ASG parameters
  max_size         = "1"
  min_size         = "1"
  min_elb_capacity = "1"
  load_balancers   = "${aws_elb.docker-registry-elb.id}"
}

## Template files
data "template_file" "docker-registry-policy" {
  template = "${file("./policy/docker-registry-role-policy.json")}"

  vars {
    config_bucket_arn = "${module.config-bucket.arn}"
    cloudinit_bucket_arn = "${module.cloudinit-bucket.arn}"
  }
}

data "template_file" "docker-registry-bootstrap-user-data" {
  template = "${file("./user-data/bootstrap-user-data.sh.tmpl")}"

  vars {
    stack_name = "${var.stack_name}"
    config_bucket_name = "${module.config-bucket.bucket_name}"
    cloudinit_bucket_name = "${module.cloudinit-bucket.bucket_name}"
{'fraction_non_alphanumeric': 0.15284090909090908, 'fraction_numerical': 0.00625, 'mean_word_length': 3.7009345794392523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6036721', 'n_tokens_mistral': 1286, 'n_tokens_neox': 1228, 'n_words': 177}