使用Elastic Beanstalk和应用负载平衡器的Cloudformation协助。

问题描述 投票:0回答:1

有谁有链接来安装弹性豆茎实例,使用cloudformation,使用应用负载均衡器吗?

amazon-web-services amazon-elastic-beanstalk
1个回答
1
投票

下面设置ASG大小和应用负载均衡器。

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

其他变量的列表,如健康检查,是可用的。此处.

© www.soinside.com 2019 - 2024. All rights reserved.