mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +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": {
|
"KubernetesNodeLaunchConfig": {
|
||||||
"Type": "AWS::AutoScaling::LaunchConfiguration",
|
"Type": "AWS::AutoScaling::LaunchConfiguration",
|
||||||
"Properties": {
|
"Properties": {
|
||||||
"SubnetId": {"Fn::If": ["UseEC2Classic", {"Ref": "AWS::NoValue"}, {"Ref": "SubnetId"}]},
|
|
||||||
"ImageId": {"Fn::FindInMap" : ["RegionMap", {"Ref": "AWS::Region" }, "AMI" ]},
|
"ImageId": {"Fn::FindInMap" : ["RegionMap", {"Ref": "AWS::Region" }, "AMI" ]},
|
||||||
"InstanceType": {"Ref": "InstanceType"},
|
"InstanceType": {"Ref": "InstanceType"},
|
||||||
"KeyName": {"Ref": "KeyPair"},
|
"KeyName": {"Ref": "KeyPair"},
|
||||||
"SecurityGroups": [{"Fn::If": [
|
"SecurityGroups": [{"Fn::If": [
|
||||||
"UseEC2Classic",
|
"UseEC2Classic",
|
||||||
{"Ref": "KubernetesSecurityGroup"},
|
{"Ref": "KubernetesSecurityGroup"},
|
||||||
{"Ref": "AWS::NoValue"}]
|
|
||||||
}],
|
|
||||||
"SecurityGroupIds": [{"Fn::If": [
|
|
||||||
"UseEC2Classic",
|
|
||||||
{"Ref": "AWS::NoValue"},
|
|
||||||
{"Fn::GetAtt": ["KubernetesSecurityGroup", "GroupId"]}]
|
{"Fn::GetAtt": ["KubernetesSecurityGroup", "GroupId"]}]
|
||||||
}],
|
}],
|
||||||
"UserData": { "Fn::Base64": {"Fn::Join" : ["", [
|
"UserData": { "Fn::Base64": {"Fn::Join" : ["", [
|
||||||
|
Loading…
Reference in New Issue
Block a user