用于创建Elasticsearch域的AWS Cli Command给出错误

时间:2018-06-27 13:53:57

标签: amazon-web-services elasticsearch aws-cli

我正在尝试通过命令使用AWS Cli创建Elasticsearch域:

aws es create-elasticsearch-domain --domain-name weblogs --elasticsearch- 
version 5.5 --elasticsearch-cluster-config  
InstanceType=m4.large.elasticsearch,InstanceCount=2 --ebs-options 
EBSEnabled=true,VolumeType=standard,VolumeSize=100 --access-policies 
'{"Version": "2012-10-17", "Statement": [{"Action": "es:*", 
"Principal":"*","Effect": "Allow", "Condition": {"IpAddress":{"aws:SourceIp": 
["192.0.2.0/32"]}}}]}'

(在aws文档中提供)。 但是当我在命令上方运行时,它给了我以下错误:

  

用法:aws [选项] [...]   [参数]要查看帮助文本,可以运行:aws help aws   help aws help未知选项:语句:,[,   {,Effect :, Allow ,, Principal :, {AWS :, arn:aws:iam :: 555555555555:root,   },动作:es:,资源:,   arn:aws:es:us-east-1:555555555555:domain / logs / ,},],}',2012-10-17,

有人对什么问题以及如何解决这个问题有任何了解

预先感谢

0 个答案:

没有答案
相关问题