<commit_before>import boto3
import logging
import os
import time

from boto3.exceptions import Boto3Error
from .cloud_provider import CloudProviderBase
from .node import Node

logging.getLogger('boto3').setLevel(logging.CRITICAL)
logging.getLogger('botocore').setLevel(logging.CRITICAL)


AWS_REGION = os.environ.get("AWS_REGION", "us-east-2")
AWS_REGION_AZ = os.environ.get("AWS_REGION_AZ", "us-east-2a")
AWS_SECURITY_GROUP = os.environ.get("AWS_SECURITY_GROUPS",
                                    'sg-0e753fd5550206e55')
AWS_SECURITY_GROUPS = [AWS_SECURITY_GROUP]
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY")
AWS_SSH_KEY_NAME = os.environ.get("AWS_SSH_KEY_NAME")
AWS_CICD_INSTANCE_TAG = os.environ.get(
    "AWS_CICD_INSTANCE_TAG", 'rancher-validation')
AWS_INSTANCE_TYPE = os.environ.get("AWS_INSTANCE_TYPE", 't2.medium')
AWS_IAM_PROFILE = os.environ.get("AWS_IAM_PROFILE", "")

AWS_AMI = os.environ.get("AWS_AMI", "")
AWS_USER = os.environ.get("AWS_USER", "ubuntu")

PRIVATE_IMAGES = {
    "rancheros-v1.5.1-docker-native": {
        'image': 'ami-00769ca587d8e100c', 'ssh_user': 'rancher'},
    "rhel-7.6-docker-native-113": {
        'image': 'ami-04b9aacf7e1512c0b', 'ssh_user': 'ec2-user'},
    "rhel-7.7-docker-native-113": {
        'image': 'ami-069569219156fdf07', 'ssh_user': 'ec2-user'},
    "rhel-7.7-docker-19.03": {
        'image': 'ami-068182ee3b273d6ec', 'ssh_user': 'ec2-user'},
    "suse-sles12-sp2-docker-18061ce": {
        'image': 'ami-0cc154aeb82bd8fa0', 'ssh_user': 'ec2-user'},
    "ubuntu-16.04-docker-18.09": {
        'image': 'ami-07e968eb9151b2599', 'ssh_user': 'ubuntu'},
    "ubuntu-18.04-docker-18.09": {
        'image': 'ami-02dcbc347c866fb5d', 'ssh_user': 'ubuntu'},
    "ubuntu-16.04-docker-19.03": {
        'image': 'ami-0965ce682883e7d23', 'ssh_user': 'ubuntu'},
    "ubuntu-18.04-docker-19.03": {
        'image': 'ami-066f14e43aebc7472', 'ssh_user': 'ubuntu'},<commit_msg>add rancher OS 1.5.4 1.5.5 AMI<commit_after>import boto3
import logging
import os
import time

from boto3.exceptions import Boto3Error
from .cloud_provider import CloudProviderBase
from .node import Node

logging.getLogger('boto3').setLevel(logging.CRITICAL)
logging.getLogger('botocore').setLevel(logging.CRITICAL)


AWS_REGION = os.environ.get("AWS_REGION", "us-east-2")
AWS_REGION_AZ = os.environ.get("AWS_REGION_AZ", "us-east-2a")
AWS_SECURITY_GROUP = os.environ.get("AWS_SECURITY_GROUPS",
                                    'sg-0e753fd5550206e55')
AWS_SECURITY_GROUPS = [AWS_SECURITY_GROUP]
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY")
AWS_SSH_KEY_NAME = os.environ.get("AWS_SSH_KEY_NAME")
AWS_CICD_INSTANCE_TAG = os.environ.get(
    "AWS_CICD_INSTANCE_TAG", 'rancher-validation')
AWS_INSTANCE_TYPE = os.environ.get("AWS_INSTANCE_TYPE", 't2.medium')
AWS_IAM_PROFILE = os.environ.get("AWS_IAM_PROFILE", "")

AWS_AMI = os.environ.get("AWS_AMI", "")
AWS_USER = os.environ.get("AWS_USER", "ubuntu")

PRIVATE_IMAGES = {
    "rancheros-v1.5.1-docker-native": {
        'image': 'ami-00769ca587d8e100c', 'ssh_user': 'rancher'},
    "rancheros-v1.5.4-docker-native": {
        'image': 'ami-022fc798437fb846a', 'ssh_user': 'rancher'},
    "rancheros-v1.5.5-docker-native": {
        'image': 'ami-002ab867b8b8591d5', 'ssh_user': 'rancher'},
    "rhel-7.6-docker-native-113": {
        'image': 'ami-04b9aacf7e1512c0b', 'ssh_user': 'ec2-user'},
    "rhel-7.7-docker-native-113": {
        'image': 'ami-069569219156fdf07', 'ssh_user': 'ec2-user'},
    "rhel-7.7-docker-19.03": {
        'image': 'ami-068182ee3b273d6ec', 'ssh_user': 'ec2-user'},
    "suse-sles12-sp2-docker-18061ce": {
        'image': 'ami-0cc154aeb82bd8fa0', 'ssh_user': 'ec2-user'},
    "ubuntu-16.04-docker-18.09": {
        'image': 'ami-07e968eb9151b2599', 'ssh_user': 'ubuntu'},
    "ubuntu-18.04-docker-18.09": {
        'image': 'ami-02dcbc347c866fb5d', 'ssh_user': 'ubuntu'},
    "ubuntu-16.04-docker-19.03": {
        'image': 'ami-0965ce682883e7d23', 'ssh_user': 'ubuntu'},
    "ubuntu-18.04-docker-19.03": {
        'image': 'ami-066f14e43aebc7472', 'ssh_user': 'ubuntu'},
{'fraction_non_alphanumeric': 0.1763451054752311, 'fraction_numerical': 0.09528324247452002, 'mean_word_length': 4.261845386533666, 'pattern_counts': {'":': 20, '<': 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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2823484', 'n_tokens_mistral': 2055, 'n_tokens_neox': 1824, 'n_words': 212}