# Path: tibanna/vars.py
# AWS_REGION = os.environ.get('TIBANNA_AWS_REGION', '')
# 
# AWS_ACCOUNT_NUMBER = os.environ.get('AWS_ACCOUNT_NUMBER', '')
# 
# Path: tibanna/utils.py
# def create_tibanna_suffix(suffix, usergroup):
#     if usergroup and suffix:
#         function_name_suffix = usergroup + '_' + suffix
#     elif suffix:
#         function_name_suffix = suffix
#     elif usergroup:
#         function_name_suffix = usergroup
#     else:
#         function_name_suffix = ''
# 
#     if function_name_suffix:
#         return '_' + function_name_suffix
#     else:
#         return ''


from .vars import AWS_REGION, AWS_ACCOUNT_NUMBER
from .utils import create_tibanna_suffix
        from .iam_utils import IAM
            "ErrorEquals": ["EC2InstanceLimitWaitException"],
            "IntervalSeconds": 600,
            "MaxAttempts": 1008,  # 1 wk
            "BackoffRate": 1.0
        },
        lambda_error_retry_condition
    ]

    sfn_check_task_retry_conditions = [
        {
            "ErrorEquals": ["EC2StartingException"],
            "IntervalSeconds": 300,
            "MaxAttempts": 25,
            "BackoffRate": 1.0
        },
        {
            "ErrorEquals": ["StillRunningException"],
            "IntervalSeconds": 300,
            "MaxAttempts": 100000,
            "BackoffRate": 1.0
        },
        lambda_error_retry_condition
    ]

    def __init__(self,
                 dev_suffix=None,
                 region_name=AWS_REGION,
                 aws_acc=AWS_ACCOUNT_NUMBER,
                 usergroup=None):
        self.dev_suffix = dev_suffix

# Path: tibanna/vars.py
# AWS_REGION = os.environ.get('TIBANNA_AWS_REGION', '')
# 
# AWS_ACCOUNT_NUMBER = os.environ.get('AWS_ACCOUNT_NUMBER', '')
# 
# Path: tibanna/utils.py
# def create_tibanna_suffix(suffix, usergroup):
#     if usergroup and suffix:
#         function_name_suffix = usergroup + '_' + suffix
#     elif suffix:
#         function_name_suffix = suffix
#     elif usergroup:
#         function_name_suffix = usergroup
#     else:
#         function_name_suffix = ''
# 
#     if function_name_suffix:
#         return '_' + function_name_suffix
#     else:
#         return ''


# Path: tibanna/stepfunction.py
from .vars import AWS_REGION, AWS_ACCOUNT_NUMBER
from .utils import create_tibanna_suffix
        from .iam_utils import IAM

            "ErrorEquals": ["EC2InstanceLimitWaitException"],
            "IntervalSeconds": 600,
            "MaxAttempts": 1008,  # 1 wk
            "BackoffRate": 1.0
        },
        lambda_error_retry_condition
    ]

    sfn_check_task_retry_conditions = [
        {
            "ErrorEquals": ["EC2StartingException"],
            "IntervalSeconds": 300,
            "MaxAttempts": 25,
            "BackoffRate": 1.0
        },
        {
            "ErrorEquals": ["StillRunningException"],
            "IntervalSeconds": 300,
            "MaxAttempts": 100000,
            "BackoffRate": 1.0
        },
        lambda_error_retry_condition
    ]

    def __init__(self,
                 dev_suffix=None,
                 region_name=AWS_REGION,
                 aws_acc=AWS_ACCOUNT_NUMBER,
                 usergroup=None):
        self.dev_suffix = dev_suffix

        self.region_name = region_name