使用boto更新ElasticBeanstalk环境选项
Boto有一个函数update_environment,允许用户更新AWS ElasticBeanstalk环境中的选项。 使用AWS CLI,通常将按如下操作: aws elasticbeanstalk update-environment –environment-name my-env –option-settings Namespace=aws:autoscaling:asg,OptionName=MinSize,Value=1 在Boto中,update_environment为option_settings提供一个List参数,如下所述: http://boto.readthedocs.org/en/latest/ref/beanstalk.html update_environment(environment_id=None, environment_name=None, version_label=None, template_name=None, description=None, option_settings=None, options_to_remove=None, tier_name=None, tier_type=None, tier_version='1.0') 我已经尝试了传递string的各种方法 Namespace=aws:autoscaling:asg,OptionName=MinSize,Value=1 作为一个列表,但似乎没有工作。 该API不断告诉我: Invalid option specification 有谁知道列表的正确格式是什么?