amazon web services - AWS Elastic Beanstalk . ebeextensions优



如果我在. ebeextensions文件夹中的两个配置文件中应用设置,最后一个文件是否覆盖第一个文件中的设置?

以定义了实例角色设置的两个文件为例:

.ebextensions/0001 - base.config

option_settings:
  IamInstanceProfile: aws-ec2-role

.ebextensions/0010 - app.config

option_settings:
  IamInstanceProfile: aws-app-role

Beanstalk EC2实例将被赋予哪个角色?Aws-ec2-role还是aws-app-role?

。扩展名按字母顺序执行,因此aws-app-role将是IamInstanceProfile选项设置的最终结果。

如果您试图部署. ebeextensions,那么它们的语法将导致编译错误,下面是执行所需操作的正确方法。

option_settings:
      "aws:autoscaling:launchconfiguration":
          IamInstanceProfile: aws-app-role

最新更新