使用弹性Beanstalk和应用程序负载均衡器的Cloudformation Assistance



有人链接到使用cloudformation安装弹性beanstall实例并使用应用程序负载均衡器吗?我看到的例子都使用经典的负载均衡器

以下设置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

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

最新更新