区域 eu-west-2 不适用于最新的 aws 模块 boto.ec2
Region eu-west-2 not available for aws module boto.ec2 latest
我是 运行 boto 和 python3,我是 运行 用于设置一些 ec2 实例的 ansible 剧本。
一切都很好,创建实例、安全组、密钥对,eu-west-2
中的一切。
当弹性 IP 的任务运行时失败并显示以下消息:
Region eu-west-2 does not seem to be available for aws module boto.ec2. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path
我 运行 对 -e ansible_python_interpreter="/usr/bin/python3"
很满意。
我安装了最新的 boto。
> python3 -m pip freeze | grep boto
boto==2.44.0
boto3==1.4.2
botocore==1.16.19
> python3
>>> import boto.ec2
>>> for i in boto.ec2.regions():
... print(i)
...
RegionInfo:ap-northeast-1
RegionInfo:ap-northeast-2
RegionInfo:ap-south-1
RegionInfo:ap-southeast-1
RegionInfo:ap-southeast-2
RegionInfo:ca-central-1
RegionInfo:cn-north-1
RegionInfo:eu-central-1
RegionInfo:eu-west-1
RegionInfo:sa-east-1
RegionInfo:us-east-1
RegionInfo:us-east-2
RegionInfo:us-gov-west-1
RegionInfo:us-west-1
RegionInfo:us-west-2
您看到它缺少 eu-west-2
区域了吗?它应该在那里。有什么想法吗?
我使用的ansible模块是ec2_eip。如果这是 boto 的限制,我该如何为该模块强制使用 boto3?
我求助于弹性ip的社区模块。
所以 community.aws.ec2_eip
而不是 ec2_eip
.
我是 运行 boto 和 python3,我是 运行 用于设置一些 ec2 实例的 ansible 剧本。
一切都很好,创建实例、安全组、密钥对,eu-west-2
中的一切。
当弹性 IP 的任务运行时失败并显示以下消息:
Region eu-west-2 does not seem to be available for aws module boto.ec2. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path
我 运行 对 -e ansible_python_interpreter="/usr/bin/python3"
很满意。
我安装了最新的 boto。
> python3 -m pip freeze | grep boto
boto==2.44.0
boto3==1.4.2
botocore==1.16.19
> python3
>>> import boto.ec2
>>> for i in boto.ec2.regions():
... print(i)
...
RegionInfo:ap-northeast-1
RegionInfo:ap-northeast-2
RegionInfo:ap-south-1
RegionInfo:ap-southeast-1
RegionInfo:ap-southeast-2
RegionInfo:ca-central-1
RegionInfo:cn-north-1
RegionInfo:eu-central-1
RegionInfo:eu-west-1
RegionInfo:sa-east-1
RegionInfo:us-east-1
RegionInfo:us-east-2
RegionInfo:us-gov-west-1
RegionInfo:us-west-1
RegionInfo:us-west-2
您看到它缺少 eu-west-2
区域了吗?它应该在那里。有什么想法吗?
我使用的ansible模块是ec2_eip。如果这是 boto 的限制,我该如何为该模块强制使用 boto3?
我求助于弹性ip的社区模块。
所以 community.aws.ec2_eip
而不是 ec2_eip
.