【问题标题】:Cloudformation Assistance with Elastic Beanstalk and Application Load BalancerCloudformation 协助 Elastic Beanstalk 和 Application Load Balancer
【发布时间】:2020-08-13 13:29:02
【问题描述】:

有没有人获得使用应用程序负载均衡器的 cloudformation 安装弹性 beanstalk 实例的链接? 我见过的所有示例都使用经典负载均衡器

【问题讨论】:

    标签: amazon-web-services amazon-elastic-beanstalk


    【解决方案1】:

    以下设置 ASG 大小和 Application Load Balancer。

    Resources:    
    
      MyConfingTemplate:
        Type: AWS::ElasticBeanstalk::ConfigurationTemplate
        Properties: 
          ApplicationName: !Ref ApplicationName
          OptionSettings: 
    
            - Namespace: aws:autoscaling:launchconfiguration
              OptionName: EC2KeyName
              #ResourceName: String
              Value: !Ref EC2KeyName
            - Namespace: aws:autoscaling:launchconfiguration
              OptionName: InstanceType
              Value: t2.micro
            - Namespace: aws:autoscaling:launchconfiguration
              OptionName: IamInstanceProfile
              Value: !Ref InstanceProfile      
            - Namespace: aws:autoscaling:asg
              OptionName: MinSize
              Value: 3      
            - Namespace: aws:autoscaling:asg
              OptionName: MaxSize
              Value: 6    
            - Namespace: aws:elasticbeanstalk:environment
              OptionName: LoadBalancerType
              Value: application             
    
          SolutionStackName: 64bit Amazon Linux 2 v3.0.0 running Python 3.7
    

    here 提供了其他变量的列表,例如健康检查。

    【讨论】:

      猜你喜欢
      • 2017-07-25
      • 2019-09-24
      • 1970-01-01
      • 2017-05-18
      • 2020-08-03
      • 2020-08-27
      • 2016-12-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多