如何解决有没有办法向仍使用旧boto的Ansible ec2模块添加新的aws区域?
旧的boto用于过时的aws ec2模块中。最后一次提交2018y。您如何在新区域中设置实例?
我当前使用的版本为ansible 2.9.6,但在2.10和2.11更新日志中,关于boto3的chenge并没有什么
Boto中的区域列表: [eu-west-1,eu-west-2,cn-north-1,us-east-2,us-gov-west-1,ca-central-1,ap-southeast-2,us-west-2 ,ap-southeast-1,us-east-1,sa-east-1,us-west-1,ap-northeast-2,eu-central-1,ap-south-1,ap-northeast-1] 使用boto3的
区域列表: ['af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','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']
解决方法
这里是https://docs.ansible.com/ansible/latest/collections/amazon/aws/ec2_module.html
的引文注意:此模块使用较旧的boto Python模块与EC2 API进行交互。 amazon.aws.ec2仍将收到错误修复,但没有任何新功能。考虑改用amazon.aws.ec2_instance模块。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。