【发布时间】:2016-09-30 01:17:43
【问题描述】:
我正在 CloudFormation 脚本中创建一个 EMR 集群,并且我能够成功地运行它以完成并构建堆栈,但现在我想知道如何在 CF 模板中实现现货定价。
这是我在创建集群时使用的内容:
"Resources": {
"MyCluster": {
"Type": "AWS::EMR::Cluster",
"Properties": {
"Applications": [
{ "Name" : "Hadoop" },
{ "Name" : "SPARK" },
{ "Name" : "Ganglia" }
],
"BootstrapActions" : [...],
"Instances": {
"AdditionalMasterSecurityGroups" : [{ "Fn::GetAtt" : ["rAllowJupyter","GroupId"] }],
"Ec2KeyName" : { "Ref" : "EC2KeyName" },
"Ec2SubnetId" : { "Ref" : "Subnet" },
"MasterInstanceGroup": {
"InstanceCount": 1,
"InstanceType": { "Ref" : "InstanceType" }
},
"CoreInstanceGroup": {
"InstanceCount": { "Ref" : "CoreNodeCount" },
"InstanceType": { "Ref" : "InstanceType" }
}
},
"Configurations": [...],
"Name": "MyCluster",
"JobFlowRole": "EMR_EC2_DefaultRole",
"ServiceRole": "EMR_DefaultRole",
"ReleaseLabel": "emr-4.6.0",
"LogUri": "s3://path/to/logs/",
"Tags": [
{ "Key": "Name", "Value": "aqa-spark"},
{ "Key": "Owner", "Value": { "Ref" : "OwnerTag" }},
{ "Key": "Purpose", "Value": { "Ref" : "PurposeTag" }}
]
}
}
},
我是否可以使用参数在 EMR 集群中为我的 CloudFormation 脚本指定点实例?
【问题讨论】:
标签: amazon-web-services amazon-cloudformation amazon-emr