<commit_before>module "vpc" {
  source = "github.com/joescii/aws-terraform-modules/vpc-2-zones"
  
  vpc_name = "lift-jetty-cluster"
  ec2_key_name = "${var.ec2_key_name}"
  region = "${module.region.region}"
  zone_A = "${module.region.zone_A}"
  zone_B = "${module.region.zone_B}"
  nat_ami = "${module.region.nat_ami}"
  bastion_ami = "${module.region.enhanced_bastion_ami}"
  ci_server_cidr_block = "${var.ci_server_cidr_block}"
  
  # With the key file, you will be able to SSH directly to the bastion
  # and then SSH to the machines whenever that is preferable to tunneling.
  provisioner "file" {
    connection {
      user = "ubuntu"
      host = "${self.bastion_host}"
      key_file = "./key.pem"
    }

    source = "./key.pem"
    destination = "/home/ubuntu/lift.pem"
  }
}<commit_msg>Trying a less ideal approach to uploading the private key to our bastion<commit_after>module "vpc" {
  source = "github.com/joescii/aws-terraform-modules/vpc-2-zones"
  
  vpc_name = "lift-jetty-cluster"
  ec2_key_name = "${var.ec2_key_name}"
  region = "${module.region.region}"
  zone_A = "${module.region.zone_A}"
  zone_B = "${module.region.zone_B}"
  nat_ami = "${module.region.nat_ami}"
  bastion_ami = "${module.region.enhanced_bastion_ami}"
  ci_server_cidr_block = "${var.ci_server_cidr_block}"
}

resource "null_resource" "key-upload" {
  # With the key file, you will be able to SSH directly to the bastion
  # and then SSH to the machines whenever that is preferable to tunneling.
  provisioner "file" {
    connection {
      user = "ubuntu"
      host = "${self.bastion_host}"
      key_file = "./key.pem"
    }

    source = "./key.pem"
    destination = "/home/ubuntu/lift.pem"
  }
}

{'fraction_non_alphanumeric': 0.14058823529411765, 'fraction_numerical': 0.0035294117647058825, 'mean_word_length': 3.4763157894736842, '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': '4688389', 'n_tokens_mistral': 633, 'n_tokens_neox': 612, 'n_words': 133}