如果我应用.ebextensions文件夹中两个配置文件中的设置,最后一个文件是否会覆盖第一个文件中的设置?
以定义了实例角色设置的两个文件为例:
.ebextensions/0001-base.config
option_settings:
IamInstanceProfile: aws-ec2-role.ebextensions/0010-app.config
option_settings:
IamInstanceProfile: aws-app-roleBeanstalk EC2实例将被赋予哪个角色?aws-ec2-role还是aws-app-role?
发布于 2016-08-16 08:02:03
.ebextensions是按字母顺序执行的,因此aws-app-role将是IamInstanceProfile选项设置的最终结果。
如果你试图部署.ebextensions,你的语法会导致编译错误,下面是你想做的正确的方法。
option_settings:
"aws:autoscaling:launchconfiguration":
IamInstanceProfile: aws-app-rolehttps://stackoverflow.com/questions/38948540
复制相似问题