|
103 | 103 | "Default": "internet-facing", |
104 | 104 | "AllowedValues" : [ "internet-facing", "internal" ], |
105 | 105 | "ConstraintDescription" : "must be either 'internet-facing' for public use, or 'internal' for private use" |
| 106 | + }, |
| 107 | + "RootVolumeSize": { |
| 108 | + "Description": "Desired size of the root volume, in GB", |
| 109 | + "Type": "Number", |
| 110 | + "Default": "50" |
| 111 | + }, |
| 112 | + "DockerVolumeSize": { |
| 113 | + "Description": "Desired size of the Docker volume, in GB", |
| 114 | + "Type": "Number", |
| 115 | + "Default": "100" |
| 116 | + }, |
| 117 | + "EtcdVolumeSize": { |
| 118 | + "Description": "Desired size of the etcd volume, in GB", |
| 119 | + "Type": "Number", |
| 120 | + "Default": "10" |
106 | 121 | } |
107 | 122 | }, |
108 | 123 |
|
|
271 | 286 | "BlockDeviceMappings" : [ |
272 | 287 | { |
273 | 288 | "DeviceName" : { "Fn::FindInMap": [ "RootDevices", { "Ref": "EC2VirtualizationType" }, "Name" ] }, |
274 | | - "Ebs" : { "VolumeSize" : "50", "VolumeType": { "Ref": "EC2EBSVolumeType" } } |
| 289 | + "Ebs" : { "VolumeSize" : { "Ref": "RootVolumeSize" }, "VolumeType": { "Ref": "EC2EBSVolumeType" } } |
275 | 290 | }, |
276 | 291 | { |
277 | 292 | "DeviceName" : "/dev/xvdf", |
278 | | - "Ebs" : { "VolumeSize" : "100", "VolumeType": { "Ref": "EC2EBSVolumeType" } } |
| 293 | + "Ebs" : { "VolumeSize" : { "Ref": "DockerVolumeSize" }, "VolumeType": { "Ref": "EC2EBSVolumeType" } } |
279 | 294 | }, |
280 | 295 | { |
281 | 296 | "DeviceName" : "/dev/xvdg", |
282 | | - "Ebs" : { "VolumeSize" : "10", "VolumeType": { "Ref": "EC2EBSVolumeType" } } |
| 297 | + "Ebs" : { "VolumeSize" : { "Ref": "EtcdVolumeSize" }, "VolumeType": { "Ref": "EC2EBSVolumeType" } } |
283 | 298 | } |
284 | 299 | ] |
285 | 300 | } |
|
0 commit comments