Skip to content

Commit

Permalink
Fix errored example in README.rst
Browse files Browse the repository at this point in the history
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
  • Loading branch information
imduffy15 authored and jamesls committed Feb 28, 2014
1 parent f1d5031 commit 742fb79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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::

Expand Down

0 comments on commit 742fb79

Please sign in to comment.