From 742fb7919176adeeeea265f1298c25f329d959e8 Mon Sep 17 00:00:00 2001 From: Ian Duffy Date: Sat, 22 Feb 2014 02:24:35 +0000 Subject: [PATCH] Fix errored example in README.rst The given example for authorize-security-group-ingress --ip-permissions uses cidr_ip which is incorrect: $ aws ec2 authorize-security-group-ingress --group-name MySecurityGroup --ip-permissions '{"FromPort":22,"ToPort":22,"IpProtocol":"tcp","IpRanges":[{"cidr_ip": "192.168.0.0/24"}]}' Invalid value ('cidr_ip') for param element of list:IpPermissions of type list It should be CidrIp --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index b386df6d85c8..1c4191910e55 100644 --- a/README.rst +++ b/README.rst @@ -248,7 +248,7 @@ security group. In this case, we will add ingress access to port 22 for all IP addresses:: $ aws ec2 authorize-security-group-ingress --group-name MySecurityGroup \ - --ip-permissions '{"FromPort":22,"ToPort":22,"IpProtocol":"tcp","IpRanges":[{"cidr_ip": "0.0.0.0/0"}]}' + --ip-permissions '{"FromPort":22,"ToPort":22,"IpProtocol":"tcp","IpRanges":[{"CidrIp": "0.0.0.0/0"}]}' -------------------------- File-based Parameter Input @@ -266,7 +266,7 @@ the file ip_perms.json:: {"FromPort":22, "ToPort":22, "IpProtocol":"tcp", - "IpRanges":[{"cidr_ip":"0.0.0.0/0"}]} + "IpRanges":[{"CidrIp":"0.0.0.0/0"}]} Then, we could make the same call as above like this::