mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix AWS::AutoScaling::LaunchConfiguration.
This only supports SecurityGroups; I'm assuming I need to use the GroupId for the SecurityGroup with VPCs. In addition this doesn't support SubnetId.
This commit is contained in:
parent
32aad891ef
commit
f3c775ae19
@ -305,18 +305,12 @@
|
||||
"KubernetesNodeLaunchConfig": {
|
||||
"Type": "AWS::AutoScaling::LaunchConfiguration",
|
||||
"Properties": {
|
||||
"SubnetId": {"Fn::If": ["UseEC2Classic", {"Ref": "AWS::NoValue"}, {"Ref": "SubnetId"}]},
|
||||
"ImageId": {"Fn::FindInMap" : ["RegionMap", {"Ref": "AWS::Region" }, "AMI" ]},
|
||||
"InstanceType": {"Ref": "InstanceType"},
|
||||
"KeyName": {"Ref": "KeyPair"},
|
||||
"SecurityGroups": [{"Fn::If": [
|
||||
"UseEC2Classic",
|
||||
{"Ref": "KubernetesSecurityGroup"},
|
||||
{"Ref": "AWS::NoValue"}]
|
||||
}],
|
||||
"SecurityGroupIds": [{"Fn::If": [
|
||||
"UseEC2Classic",
|
||||
{"Ref": "AWS::NoValue"},
|
||||
{"Fn::GetAtt": ["KubernetesSecurityGroup", "GroupId"]}]
|
||||
}],
|
||||
"UserData": { "Fn::Base64": {"Fn::Join" : ["", [
|
||||
|
Loading…
Reference in New Issue
Block a user