Python AWS Boto URL 连接错误
Python AWS Boto URL Connection Error
我正在尝试在 Python BOTO 中创建 AWS 机器学习模型:
import boto3
from boto3.session import Session
import uuid
session = Session(aws_access_key_id='...', aws_secret_access_key='...', region_name='us-west-1')
client = session.client('machinelearning')
response = client.create_ml_model(
MLModelId=str(uuid.uuid4()),
MLModelName='banking',
MLModelType='BINARY',
TrainingDataSourceId='...',
)
但是,我收到以下错误:
botocore.exceptions.EndpointConnectionError:无法连接到端点 URL:“https://machinelearning.us-west-1.amazonaws.com/”
我不认为 region_name 是问题所在。这可能是权限问题吗?
实际上是地区问题。亚马逊机器学习目前仅在弗吉尼亚和爱尔兰地区可用 per documentation
我正在尝试在 Python BOTO 中创建 AWS 机器学习模型:
import boto3
from boto3.session import Session
import uuid
session = Session(aws_access_key_id='...', aws_secret_access_key='...', region_name='us-west-1')
client = session.client('machinelearning')
response = client.create_ml_model(
MLModelId=str(uuid.uuid4()),
MLModelName='banking',
MLModelType='BINARY',
TrainingDataSourceId='...',
)
但是,我收到以下错误:
botocore.exceptions.EndpointConnectionError:无法连接到端点 URL:“https://machinelearning.us-west-1.amazonaws.com/”
我不认为 region_name 是问题所在。这可能是权限问题吗?
实际上是地区问题。亚马逊机器学习目前仅在弗吉尼亚和爱尔兰地区可用 per documentation