2017-03-09 25 views
0

http://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-man-sec-groups.html說,在節標題「指定使用AWS CLI亞馬遜EMR管理安全組」:當我運行使用這些參數的aws emr create-cluster命令如何使用AWS CLI使用由Amazon EMR管理的安全組> = 1.11.59?

Use the create-cluster command with the --emr-managed-master-security-group and --emr-managed-slave-security-group parameters.

,我得到以下錯誤:

Unknown options: --emr-managed-master-security-group,--emr-managed-slave-security-group 

我的aws CLI版本如下:

$ aws --version 
aws-cli/1.11.59 Python/2.7.10 Darwin/16.4.0 botocore/1.5.22 

有什麼新的神祕的印加現在這些不支持的選項?

更新1:通過aws emr create-cluster help RTFMing包括以下內容:

o Create an Amazon EMR cluster specifying only the Amazon EMR-managed 
    Amazon EC2 security groups: 

     aws emr create-cluster --release-label emr-5.0.0 --service-role myServiceRole --ec2-attributes InstanceProfile=myRole,EmrManagedMasterSecurityGroup=sg-master1,EmrManagedSlaveSecurityGroup=sg-slave1 --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m3.xlarge InstanceGroupType=CORE,InstanceCount=2,InstanceType=m3.xlarge 

所以我覺得對自己說, 「自我,我猜你使用文字值 'SG-master1' & 'SG-SLAVE1'」 ,因此我更新了我的腳本&嘗試它們,然後在AWS EMR控制檯中顯示錯誤消息Terminated with errorsInvalid id: "sg-master1" (Service: AmazonEC2; Status Code: 400; Error Code: InvalidGroupId.Malformed; Request ID: cdd335ba-59f4-407a-b7d6-9cf8a96f08d9)。不好;跋涉在...

回答