mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Fix SecurityGroups/SecurityGroupIds issue.
This commit is contained in:
@@ -130,7 +130,16 @@
|
|||||||
"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::GetAtt": ["KubernetesSecurityGroup", "GroupId"]}],
|
"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" : ["", [
|
"UserData": { "Fn::Base64": {"Fn::Join" : ["", [
|
||||||
"#cloud-config\n\n",
|
"#cloud-config\n\n",
|
||||||
"---\n",
|
"---\n",
|
||||||
@@ -300,7 +309,16 @@
|
|||||||
"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::GetAtt": ["KubernetesSecurityGroup", "GroupId"]}],
|
"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" : ["", [
|
"UserData": { "Fn::Base64": {"Fn::Join" : ["", [
|
||||||
"#cloud-config\n\n",
|
"#cloud-config\n\n",
|
||||||
"coreos:\n",
|
"coreos:\n",
|
||||||
|
Reference in New Issue
Block a user