mirror of https://github.com/OpenVidu/openvidu.git
deployment: CF update launch configuration to launch template due to deprecation notice.
Link to the AWS announcement: https://aws.amazon.com/blogs/compute/amazon-ec2-auto-scaling-will-no-longer-add-support-for-new-ec2-features-to-launch-configurations/pull/816/head
parent
ca19a1235d
commit
16c417e8e4
|
@ -705,12 +705,13 @@ Resources:
|
|||
#####
|
||||
# Media Node Autoscaling Group
|
||||
#####
|
||||
MediaNodeAutoScalingLaunchConfiguration:
|
||||
Type: AWS::AutoScaling::LaunchConfiguration
|
||||
MediaNodeLaunchTemplateConfiguration:
|
||||
Type: AWS::EC2::LaunchTemplate
|
||||
Properties:
|
||||
LaunchConfigurationName: !Join [ "-", [ !Ref 'AWS::StackName', 'ASGMediaNodeLaunchConfiguration'] ]
|
||||
SecurityGroups:
|
||||
- !Ref MediaNodeSecurityGroup
|
||||
LaunchTemplateName: !Join [ "-", [ !Ref 'AWS::StackName', 'ASGMediaNodeLaunchTemplate'] ]
|
||||
LaunchTemplateData:
|
||||
SecurityGroupIds:
|
||||
- !GetAtt MediaNodeSecurityGroup.GroupId
|
||||
ImageId: !GetAtt LambdaOnCreateInvoke.MediaNodeImageId
|
||||
KeyName: !Ref KeyName
|
||||
InstanceType: !Ref AwsInstanceTypeKMS
|
||||
|
@ -725,7 +726,9 @@ Resources:
|
|||
Type: AWS::AutoScaling::AutoScalingGroup
|
||||
Properties:
|
||||
AutoScalingGroupName: !Join [ "-", [ !Ref 'AWS::StackName', 'ASGMediaNode'] ]
|
||||
LaunchConfigurationName: !Ref MediaNodeAutoScalingLaunchConfiguration
|
||||
LaunchTemplate:
|
||||
LaunchTemplateId: !Ref MediaNodeLaunchTemplateConfiguration
|
||||
Version: !GetAtt MediaNodeLaunchTemplateConfiguration.LatestVersionNumber
|
||||
MinSize: !Ref MinMediaNodes
|
||||
MaxSize: !Ref MaxMediaNodes
|
||||
DesiredCapacity: !Ref DesiredMediaNodes
|
||||
|
@ -957,13 +960,15 @@ Resources:
|
|||
#####
|
||||
# OpenVidu Pro Master AutoScaling Group
|
||||
#####
|
||||
OpenViduProMasterNodeAutoScalingLaunchConfiguration:
|
||||
Type: AWS::AutoScaling::LaunchConfiguration
|
||||
OpenViduProMasterNodeAutoScalingLaunchTemplate:
|
||||
Type: AWS::EC2::LaunchTemplate
|
||||
Properties:
|
||||
LaunchConfigurationName: !Join [ "-", [ !Ref 'AWS::StackName', 'ASGMasterNodeLaunchConfiguration'] ]
|
||||
SecurityGroups:
|
||||
- !Ref OpenViduSecurityGroup
|
||||
IamInstanceProfile: !Ref OpenViduProMasterInstanceProfile
|
||||
LaunchTemplateName: !Join [ "-", [ !Ref 'AWS::StackName', 'ASGMasterNodeLaunchConfiguration'] ]
|
||||
LaunchTemplateData:
|
||||
SecurityGroupIds:
|
||||
- !GetAtt OpenViduSecurityGroup.GroupId
|
||||
IamInstanceProfile:
|
||||
Arn: !GetAtt OpenViduProMasterInstanceProfile.Arn
|
||||
ImageId: !GetAtt LambdaOnCreateInvoke.MasterNodeImageId
|
||||
KeyName: !Ref KeyName
|
||||
InstanceType: !Ref AwsInstanceTypeOV
|
||||
|
@ -1009,7 +1014,9 @@ Resources:
|
|||
Type: AWS::AutoScaling::AutoScalingGroup
|
||||
Properties:
|
||||
AutoScalingGroupName: !Join [ "-", [ !Ref 'AWS::StackName', 'ASGOpenViduProMasterNode'] ]
|
||||
LaunchConfigurationName: !Ref OpenViduProMasterNodeAutoScalingLaunchConfiguration
|
||||
LaunchTemplate:
|
||||
LaunchTemplateId: !Ref OpenViduProMasterNodeAutoScalingLaunchTemplate
|
||||
Version: !GetAtt OpenViduProMasterNodeAutoScalingLaunchTemplate.LatestVersionNumber
|
||||
TargetGroupARNs:
|
||||
- !Ref TargetGroup
|
||||
MinSize: !Ref MinMasterNodes
|
||||
|
|
Loading…
Reference in New Issue