<commit_before>{
  "AWSTemplateFormatVersion":"2010-09-09",
  "Description":"Aminator by Answers for AWS",
  "Parameters":{
    "InstanceType":{
      "Description":"Type of EC2 instances to launch",
      "Type":"String",
      "Default":"t1.micro"
    },
    "KeyName":{
      "Description":"The EC2 Key Pair to allow SSH access to the instances",
      "Type":"String",
      "Default":""
    }
  },
  
  "Mappings":{
    "AWSRegion2AMI":{
      "us-east-1":{
        "ami":"ami-00000000"
      },
      "us-west-1":{
        "ami":"ami-00000000"
      },
      "us-west-2":{
        "ami":"ami-fdd04dcd"
      },
      "eu-west-1":{
        "ami":"ami-00000000"
      },
      "ap-southeast-1":{
        "ami":"ami-00000000"
      },
      "ap-northeast-1":{
        "ami":"ami-00000000"
      }
    }
  },
  
  "Resources" : {
    "AminatorIamRole":{
      "Type":"AWS::IAM::Role",
      "Properties":{
        "AssumeRolePolicyDocument":{
          "Statement":[
            {
              "Effect":"Allow",
              "Principal":{
                "Service":[
                  "ec2.amazonaws.com"
                ]
              },
              "Action":[
                "sts:AssumeRole"
              ]
            }
          ]
        },
        "Path":"/",
        "Policies":[
          {
            "PolicyName":"AminatorPolicy",
            "PolicyDocument":{
              "Statement": [
                {
                  "Effect": "Allow",
			      "Action": [
			        "ec2:AttachVolume",
			        "ec2:CopySnapshot",
			        "ec2:CreateSnapshot",
			        "ec2:CreateTags",
			        "ec2:CreateVolume",
			        "ec2:DeleteSnapshot",
			        "ec2:DeleteTags",
			        "ec2:DeleteVolume",
			        "ec2:DeregisterImage",
			        "ec2:DetachVolume",
			        "ec2:RegisterImage",
			        "ec2:Describe*"
			      ],
                  "Resource": "*"
                }
              ]
            }
          }
        ]
      }
    },
    "AminatorInstanceProfile":{
      "Type":"AWS::IAM::InstanceProfile",
      "Properties":{
        "Path":"/",
        "Roles":[
          {<commit_msg>Updating CF script with AMIs for all regions<commit_after>{
  "AWSTemplateFormatVersion":"2010-09-09",
  "Description":"Aminator by Answers for AWS",
  "Parameters":{
    "InstanceType":{
      "Description":"Type of EC2 instances to launch",
      "Type":"String",
      "Default":"t1.micro"
    },
    "KeyName":{
      "Description":"The EC2 Key Pair to allow SSH access to the instances",
      "Type":"String",
      "Default":""
    }
  },
  
  "Mappings":{
    "AWSRegion2AMI":{
      "us-east-1":{
        "ami":"ami-00d59369"
      },
      "us-west-1":{
        "ami":"ami-0aa68d4f"
      },
      "us-west-2":{
        "ami":"ami-35821f05"
      },
      "eu-west-1":{
        "ami":"ami-a96971dd"
      },
      "sa-east-1":{
        "ami":"ami-5368cc4e"
      },
      "ap-southeast-1":{
        "ami":"ami-36ace464"
      },
      "ap-southeast-2":{
        "ami":"ami-734ddf49"
      },
      "ap-northeast-1":{
        "ami":"ami-e9af3fe8"
      }
    }
  },
  
  "Resources" : {
    "AminatorIamRole":{
      "Type":"AWS::IAM::Role",
      "Properties":{
        "AssumeRolePolicyDocument":{
          "Statement":[
            {
              "Effect":"Allow",
              "Principal":{
                "Service":[
                  "ec2.amazonaws.com"
                ]
              },
              "Action":[
                "sts:AssumeRole"
              ]
            }
          ]
        },
        "Path":"/",
        "Policies":[
          {
            "PolicyName":"AminatorPolicy",
            "PolicyDocument":{
              "Statement": [
                {
                  "Effect": "Allow",
			      "Action": [
			        "ec2:AttachVolume",
			        "ec2:CopySnapshot",
                    "ec2:CreateImage",
			        "ec2:CreateSnapshot",
			        "ec2:CreateTags",
			        "ec2:CreateVolume",
			        "ec2:DeleteSnapshot",
			        "ec2:DeleteTags",
			        "ec2:DeleteVolume",
			        "ec2:DeregisterImage",
			        "ec2:DetachVolume",
			        "ec2:ModifyImageAttribute",
			        "ec2:ModifySnapshotAttribute",
			        "ec2:ModifyVolumeAttribute",
			        "ec2:RegisterImage",
			        "ec2:ResetImageAttribute",
			        "ec2:ResetSnapshotAttribute",
			        "ec2:Describe*"
			      ],
                  "Resource": "*"
                }
              ]
            }
          }
        ]
      }
    },
    "AminatorInstanceProfile":{
      "Type":"AWS::IAM::InstanceProfile",
      "Properties":{
        "Path":"/",
        "Roles":[
          {
{'fraction_non_alphanumeric': 0.16442451420029897, 'fraction_numerical': 0.03267136450992953, 'mean_word_length': 1.3384922616075887, 'pattern_counts': {'":': 98, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 5, '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': '5497222', 'n_tokens_mistral': 1654, 'n_tokens_neox': 1409, 'n_words': 183}