Skip to content

Commit e35b3a3

Browse files
committed
Merge pull request #3065 from carmstrong/pr-2973
feat(ec2/cloudformation): use SSD EBS volumes by default
2 parents 977f88c + 0901332 commit e35b3a3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

contrib/ec2/deis.template.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@
7878
"AllowedValues" : [ "PV", "HVM" ],
7979
"ConstraintDescription" : "must be either PV or HVM"
8080
},
81+
"EC2EBSVolumeType" : {
82+
"Description" : "EC2 EBS VolumeType",
83+
"Type": "String",
84+
"Default": "gp2",
85+
"AllowedValues" : [ "gp2", "standard" ],
86+
"ConstraintDescription" : "must be either 'gp2' for SSD or 'standard' for magnetic (provisioned iOPS requires further manual changes)"
87+
},
8188
"AssociatePublicIP": {
8289
"Description": "Whether to associate a public IP address to the instances",
8390
"Type": "String",
@@ -251,11 +258,11 @@
251258
"BlockDeviceMappings" : [
252259
{
253260
"DeviceName" : { "Fn::FindInMap": [ "RootDevices", { "Ref": "EC2VirtualizationType" }, "Name" ] },
254-
"Ebs" : { "VolumeSize" : "50" }
261+
"Ebs" : { "VolumeSize" : "50", "VolumeType": { "Ref": "EC2EBSVolumeType" } }
255262
},
256263
{
257264
"DeviceName" : "/dev/xvdf",
258-
"Ebs" : { "VolumeSize" : "100" }
265+
"Ebs" : { "VolumeSize" : "100", "VolumeType": { "Ref": "EC2EBSVolumeType" } }
259266
}
260267
]
261268
}

0 commit comments

Comments
 (0)