有谁有链接来安装弹性豆茎实例,使用cloudformation,使用应用负载均衡器吗?
下面设置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
其他变量的列表,如健康检查,是可用的。此处.