Skip to content

Commit

Permalink
Add EBS configuration to the sample EMR template
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Alonso Dominguez committed Apr 5, 2016
1 parent ee39e79 commit 3ae66a7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion examples/EMR_Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
cluster = template.add_resource(emr.Cluster(
"EMRSampleCluster",
Name="EMR Sample Cluster",
ReleaseLabel='emr-4.3.0',
ReleaseLabel='emr-4.4.0',
BootstrapActions=[emr.BootstrapActionConfig(
Name='Dummy bootstrap action',
ScriptBootstrapAction=emr.ScriptBootstrapActionConfig(
Expand Down Expand Up @@ -122,6 +122,18 @@
]
)
],
EbsConfiguration=emr.EbsConfiguration(
EbsBlockDeviceConfig=[
emr.EbsBlockDeviceConfig(
VolumeSpecification=emr.VolumeSpecification(
SizeInGB="100",
VolumeType="standard"
),
VolumesPerInstance="1"
)
],
EbsOptimized="true"
),
JobFlowRole=Ref(emr_instance_profile),
ServiceRole=Ref(emr_service_role),
Instances=emr.JobFlowInstancesConfig(
Expand Down
14 changes: 13 additions & 1 deletion tests/examples_output/EMR_Cluster.template
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,18 @@
]
}
],
"EbsConfiguration": {
"EbsBlockDeviceConfig": [
{
"VolumeSpecification": {
"SizeInGB": "100",
"VolumeType": "standard"
},
"VolumesPerInstance": "1"
}
],
"EbsOptimized": "true"
},
"Instances": {
"CoreInstanceGroup": {
"BidPrice": "20",
Expand All @@ -134,7 +146,7 @@
"Ref": "EMRInstanceProfile"
},
"Name": "EMR Sample Cluster",
"ReleaseLabel": "emr-4.3.0",
"ReleaseLabel": "emr-4.4.0",
"ServiceRole": {
"Ref": "EMRServiceRole"
},
Expand Down

0 comments on commit 3ae66a7

Please sign in to comment.