| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | from __future__ import absolute_import |
| |
|
| | import logging |
| | import os |
| |
|
| | import boto3 |
| |
|
| | DATA_DIR = os.path.join(os.path.dirname(__file__), "..", "data") |
| | TRAINING_DEFAULT_TIMEOUT_MINUTES = 40 |
| | TUNING_DEFAULT_TIMEOUT_MINUTES = 40 |
| | TRANSFORM_DEFAULT_TIMEOUT_MINUTES = 40 |
| | AUTO_ML_DEFAULT_TIMEMOUT_MINUTES = 60 |
| |
|
| | |
| | HOSTING_NO_P2_REGIONS = [ |
| | "af-south-1", |
| | "ap-east-1", |
| | "ca-central-1", |
| | "eu-central-1", |
| | "eu-north-1", |
| | "eu-west-2", |
| | "eu-west-3", |
| | "eu-south-1", |
| | "sa-east-1", |
| | "us-west-1", |
| | ] |
| | HOSTING_NO_P3_REGIONS = [ |
| | "af-south-1", |
| | "ap-east-1", |
| | "ap-south-1", |
| | "ap-southeast-1", |
| | "ap-southeast-2", |
| | "ca-central-1", |
| | "eu-central-1", |
| | "eu-north-1", |
| | "eu-west-2", |
| | "eu-west-3", |
| | "eu-south-1", |
| | "sa-east-1", |
| | "us-west-1", |
| | ] |
| | TRAINING_NO_P2_REGIONS = [ |
| | "af-south-1", |
| | "ap-east-1", |
| | "ap-southeast-1", |
| | "ap-southeast-2", |
| | "ca-central-1", |
| | "eu-central-1", |
| | "eu-north-1", |
| | "eu-west-2", |
| | "eu-west-3", |
| | "eu-south-1", |
| | "me-south-1", |
| | "sa-east-1", |
| | "us-west-1", |
| | ] |
| | TRAINING_NO_P3_REGIONS = [ |
| | "af-south-1", |
| | "ap-east-1", |
| | "ap-southeast-1", |
| | "ap-southeast-2", |
| | "ca-central-1", |
| | "eu-central-1", |
| | "eu-north-1", |
| | "eu-west-1", |
| | "eu-west-2", |
| | "eu-west-3", |
| | "eu-south-1", |
| | "me-south-1", |
| | "sa-east-1", |
| | "us-west-1", |
| | "ap-northeast-1", |
| | "ap-south-1", |
| | "ap-northeast-2", |
| | "us-east-2", |
| | ] |
| |
|
| | |
| | |
| | EI_SUPPORTED_REGIONS = [ |
| | "ap-northeast-1", |
| | "ap-northeast-2", |
| | "eu-west-1", |
| | "us-east-1", |
| | "us-east-2", |
| | "us-west-2", |
| | ] |
| |
|
| | RL_SUPPORTED_REGIONS = ( |
| | "ap-northeast-1", |
| | "ap-northeast-2", |
| | "ap-south-1", |
| | "ap-southeast-1", |
| | "ap-southeast-2", |
| | "ca-central-1", |
| | "eu-central-1", |
| | "eu-west-1", |
| | "eu-west-2", |
| | "us-east-1", |
| | "us-east-2", |
| | "us-west-1", |
| | "us-west-2", |
| | ) |
| |
|
| | NO_LDA_REGIONS = [ |
| | "eu-west-3", |
| | "eu-north-1", |
| | "sa-east-1", |
| | "ap-east-1", |
| | "me-south-1", |
| | "af-south-1", |
| | "eu-south-1", |
| | ] |
| | NO_MARKET_PLACE_REGIONS = [ |
| | "eu-west-3", |
| | "eu-north-1", |
| | "sa-east-1", |
| | "ap-east-1", |
| | "me-south-1", |
| | "af-south-1", |
| | "eu-south-1", |
| | ] |
| | NO_AUTO_ML_REGIONS = [ |
| | "eu-west-3", |
| | "af-south-1", |
| | "eu-south-1", |
| | ] |
| | NO_MODEL_MONITORING_REGIONS = ["me-south-1", "af-south-1", "eu-south-1"] |
| | DRIFT_CHECK_BASELINES_SUPPORTED_REGIONS = [ |
| | "us-east-2", |
| | "ca-central-1", |
| | "me-south-1", |
| | "us-west-2", |
| | "ap-east-1", |
| | "ap-northeast-2", |
| | "ap-southeast-2", |
| | "eu-west-2", |
| | "us-east-1", |
| | ] |
| | EDGE_PACKAGING_SUPPORTED_REGIONS = [ |
| | "us-east-2", |
| | "us-west-2", |
| | "us-east-1", |
| | "eu-west-1", |
| | "ap-northeast-1", |
| | "eu-central-1", |
| | ] |
| | |
| | TRAINING_COMPILER_SUPPORTED_REGIONS = [ |
| | "af-south-1", |
| | "ap-east-1", |
| | "ap-northeast-1", |
| | "ap-northeast-2", |
| | "ap-northeast-3", |
| | "ap-south-1", |
| | "ap-southeast-1", |
| | "ap-southeast-2", |
| | "ca-central-1", |
| | "eu-central-1", |
| | "eu-north-1", |
| | "eu-south-1", |
| | "eu-west-1", |
| | "eu-west-2", |
| | "eu-west-3", |
| | "me-south-1", |
| | "sa-east-1", |
| | "us-east-1", |
| | "us-east-2", |
| | "us-west-1", |
| | "us-west-2", |
| | ] |
| | |
| | |
| | |
| | DATA_PARALLEL_TESTING_REGIONS = ["us-east-2", "us-east-1"] |
| |
|
| |
|
| | EFS_TEST_ENABLED_REGION = [] |
| |
|
| | logging.getLogger("boto3").setLevel(logging.INFO) |
| | logging.getLogger("botocore").setLevel(logging.INFO) |
| |
|
| |
|
| | def test_region(): |
| | return os.environ.get("TEST_AWS_REGION_NAME", boto3.session.Session().region_name) |
| |
|