<commit_before>{
  "AWSTemplateFormatVersion" : "2010-09-09",

  "Parameters" : {
    "EBApplicationName": {
      "Type": "String",
      "Description": "Name of the ElasticBeanstalk environment"
    },
    "KeyName": {
      "Type": "AWS::EC2::KeyPair::KeyName",
      "Description": "Name of an existing EC2 KeyPair to enable SSH access to the ECS instances"
    },
    "S3Bucket": {
      "Type": "String",
      "Description": "S3 bucket with the Fcrepo war",
      "Default": "hybox-deployment-artifacts" 
    },
    "S3Key": {
      "Type": "String",
      "Description": "S3 key to the Fcrepo war",
      "Default": "fcrepo-webapp-4.5.1.war"
    },
    "MinSize": {
      "Type": "Number",
      "Default" : "1",
      "Description": "Minimum number of instances"
    },
    "MaxSize": {
      "Type": "Number",
      "Default" : "2",
      "Description": "Maximum number of instances"
    },
    "SecurityGroups": {
      "Type": "List<AWS::EC2::SecurityGroup::GroupName>",
      "Description": "A list of security group names, such as my-sg-ab.",
      "Default": "default"
    },
    "HostedZoneName" : {
      "Description" : "Route53 zone to create an alias in",
      "Type" : "String"
    }
  },
  "Resources" : {
    "FcrepoApplication" : {
      "Type" : "AWS::ElasticBeanstalk::Application",
      "Properties" : {
        "ApplicationName" : { "Ref" : "EBApplicationName"},
        "Description" : "Fcrepo service"
      }
    },
    "FcrepoApplicationVersion" : {
      "Type" : "AWS::ElasticBeanstalk::ApplicationVersion",
      "Properties" : {
        "ApplicationName" : { "Ref" : "FcrepoApplication" },
        "Description" : "Fcrepo service version",
        "SourceBundle" : {
          "S3Bucket" : { "Ref" : "S3Bucket" },
          "S3Key" : { "Ref" : "S3Key" }
        }
      }
    },
    "FcrepoConfigurationTemplate" : {
      "Type" : "AWS::ElasticBeanstalk::ConfigurationTemplate",
      "Properties" : {
        "ApplicationName" : { "Ref" : "FcrepoApplication"},
        "Description" : "Fcrepo configuration template",
        "OptionSettings" : [
          {
            "Namespace" : "aws:autoscaling:launchconfiguration",
            "OptionName" : "InstanceType",
            "Value" : "t2.large"
          },
          {
            "Namespace" : "aws:autoscaling:launchconfiguration",
            "OptionName" : "EC2KeyName",
            "Value" : { "Ref" : "KeyName" }
          },
          {
            "Namespace" : "aws:autoscaling:launchconfiguration",
            "OptionName" : "SecurityGroups",
            "Value" : { "Fn::Join": ["", { "Ref" : "SecurityGroups" }] }
          },<commit_msg>Keep fcrepo load-balancer internal to the VPC<commit_after>{
  "AWSTemplateFormatVersion" : "2010-09-09",

  "Parameters" : {
    "EBApplicationName": {
      "Type": "String",
      "Description": "Name of the ElasticBeanstalk environment"
    },
    "KeyName": {
      "Type": "AWS::EC2::KeyPair::KeyName",
      "Description": "Name of an existing EC2 KeyPair to enable SSH access to the ECS instances"
    },
    "S3Bucket": {
      "Type": "String",
      "Description": "S3 bucket with the Fcrepo war",
      "Default": "hybox-deployment-artifacts" 
    },
    "S3Key": {
      "Type": "String",
      "Description": "S3 key to the Fcrepo war",
      "Default": "fcrepo-webapp-4.5.1.war"
    },
    "MinSize": {
      "Type": "Number",
      "Default" : "1",
      "Description": "Minimum number of instances"
    },
    "MaxSize": {
      "Type": "Number",
      "Default" : "2",
      "Description": "Maximum number of instances"
    },
    "SecurityGroups": {
      "Type": "List<AWS::EC2::SecurityGroup::GroupName>",
      "Description": "A list of security group names, such as my-sg-ab.",
      "Default": "default"
    },
    "HostedZoneName" : {
      "Description" : "Route53 zone to create an alias in",
      "Type" : "String"
    }
  },
  "Resources" : {
    "FcrepoApplication" : {
      "Type" : "AWS::ElasticBeanstalk::Application",
      "Properties" : {
        "ApplicationName" : { "Ref" : "EBApplicationName"},
        "Description" : "Fcrepo service"
      }
    },
    "FcrepoApplicationVersion" : {
      "Type" : "AWS::ElasticBeanstalk::ApplicationVersion",
      "Properties" : {
        "ApplicationName" : { "Ref" : "FcrepoApplication" },
        "Description" : "Fcrepo service version",
        "SourceBundle" : {
          "S3Bucket" : { "Ref" : "S3Bucket" },
          "S3Key" : { "Ref" : "S3Key" }
        }
      }
    },
    "FcrepoConfigurationTemplate" : {
      "Type" : "AWS::ElasticBeanstalk::ConfigurationTemplate",
      "Properties" : {
        "ApplicationName" : { "Ref" : "FcrepoApplication"},
        "Description" : "Fcrepo configuration template",
        "OptionSettings" : [
          {
            "Namespace" : "aws:autoscaling:launchconfiguration",
            "OptionName" : "InstanceType",
            "Value" : "t2.large"
          },
          {
            "Namespace" : "aws:autoscaling:launchconfiguration",
            "OptionName" : "EC2KeyName",
            "Value" : { "Ref" : "KeyName" }
          },
          {
            "Namespace" : "aws:ec2:vpc",
            "OptionName" : "ELBScheme",
            "Value" : "internal"
          },
          {
            "Namespace" : "aws:autoscaling:launchconfiguration",
            "OptionName" : "SecurityGroups",
            "Value" : { "Fn::Join": ["", { "Ref" : "SecurityGroups" }] }
          },
{'fraction_non_alphanumeric': 0.1655992680695334, 'fraction_numerical': 0.010430009149130833, 'mean_word_length': 2.2671846981470414, 'pattern_counts': {'":': 50, '<': 5, '<?xml version=': 0, '>': 5, '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': '2837141', 'n_tokens_mistral': 1754, 'n_tokens_neox': 1713, 'n_words': 338}