You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.0 KiB

RI_HOURS_PURCHASED = 'RI_hours_purchased'
RI_HOURS_USED = 'RI_hours_used'
RI_UNITS_PURCHASED = 'RI_units_purchased'
RI_UNITS_USED = 'RI_units_used'
INSTANCE_HOURS_PURCHASED = 'instance_hours_purchased'
INSTANCE_HOURS_COVERED = 'instance_hours_covered'
INSTANCE_UNITS_PURCHASED = 'instance_units_purchased'
INSTANCE_UNITS_COVERED = 'instance_units_covered'
# Old source page : https://aws.amazon.com/blogs/aws/new-instance-size-flexibility-for-ec2-reserved-instances/
# Including support for the newly added instance types as per https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/apply_ri.html#ri-instance-size-flexibility
NORMAL_FACTOR = {
'nano': 0.25,
'micro': 0.5,
'small': 1,
'medium': 2,
'large': 4,
'xlarge': 8,
'2xlarge': 16,
'3xlarge': 24,
'4xlarge': 32,
'6xlarge': 48,
'8xlarge': 64,
'9xlarge': 72,
'10xlarge': 80,
'12xlarge': 96,
'16xlarge': 128,
'18xlarge': 144,
'24xlarge': 192,
'32xlarge': 256,
'56xlarge': 448,
'112xlarge': 896
}
CAL_ORDER = ['112xlarge', '56xlarge', '32xlarge', '24xlarge', '18xlarge', '16xlarge', '12xlarge', '10xlarge', '9xlarge', '8xlarge', '6xlarge', '4xlarge', '3xlarge', '2xlarge', 'xlarge', 'large', 'medium', 'small',
'micro', 'nano']
DELIMITERS = ['\d+', '\W+', '_']
WORDS_MAP = {
'suse': 'suse',
'red': 'rhel',
'hat': 'rhel',
'rhel': 'rhel',
'redhat': 'rhel',
'enterprise': 'enterprise',
'std': 'std',
'standard': 'std',
'wins': 'windows',
'sql': 'sql',
'web': 'web',
'windows': 'windows',
'server': 'server'
}
PLATFORM_MAP = {
'SUSE Linux': ['suse'],
'Red Hat Enterprise Linux': ['rhel'],
'Windows with SQL Server Standard': ['sql','std', 'windows'],
'Windows with SQL Server Web': ['sql', 'web', 'windows'],
'Windows with SQL Server Enterprise': ['enterprise', 'sql', 'windows']
}
PLATFORM_ORDER = ['Windows with SQL Server Standard', 'Windows with SQL Server Web',
'Windows with SQL Server Enterprise', 'SUSE Linux', 'Red Hat Enterprise Linux']