Subject: | authorize_security_group_ingress does not work |
Net::Amazone::EC2 authorize_security_group_ingress(%params) does not work.
1. When GroupName, IpProtocol, FromPort, ToPort, CidrIp are specified,
status return is 1 but nothing is set. ec2-describe-group shows nothing
is changed.
2. When GroupName, SourceSecurityGroupName, SourceSecurityGroupOwnerId
are specified, the rule set is different from that set by ec2-authorize.
After calling authorize_security_group_ingress:
# ec2-describe-group test1
GROUP 123456789012 test1 't1'
PERMISSION 123456789012 test1 ALLOWS tcp 1 65535
FROM USER 123456789012 GRPNAME test2
PERMISSION 123456789012 test1 ALLOWS udp 1 65535
FROM USER 123456789012 GRPNAME test2
PERMISSION 123456789012 test1 ALLOWS icmp -1 -1
FROM USER 123456789012 GRPNAME test2
After calling ec2-authorize test1 -o test2 -u 123456789012
# ec2-describe-group test1
GROUP 123456789012 test1 't1'
PERMISSION 123456789012 test1 ALLOWS all
FROM USER 123456789012 GRPNAME test2