Andy Andy
2015-08-09 06:57:56 UTC
Hi everyone,
I notice there is always a default outbound rule once a security group is
created.
The rule's type is 'All traffic' with Protocol 'All'.
How should i delete this default rule using boto?
I tried
File "<pyshell#8>", line 1, in <module>
group = c.revoke_security_group_egress(group.id,'All')
File
"C:\Python27\lib\site-packages\boto-2.38.0-py2.7.egg\boto\ec2\connection.py",
line 3447, in revoke_security_group_egress
params, verb='POST')
File
"C:\Python27\lib\site-packages\boto-2.38.0-py2.7.egg\boto\connection.py",
line 1227, in get_status
raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Invalid
value 'All' for IP protocol. Unknown
protocol.</Message></Error></Errors><RequestID>105afe65-1a4e-42a3-b754-1fc519c54ca4</RequestID></Response>
Please help me take a look at this issue.
Thanks,
Best wishes,
Andy
I notice there is always a default outbound rule once a security group is
created.
The rule's type is 'All traffic' with Protocol 'All'.
How should i delete this default rule using boto?
I tried
group = c.revoke_security_group_egress(group.id,'All')
Traceback (most recent call last):File "<pyshell#8>", line 1, in <module>
group = c.revoke_security_group_egress(group.id,'All')
File
"C:\Python27\lib\site-packages\boto-2.38.0-py2.7.egg\boto\ec2\connection.py",
line 3447, in revoke_security_group_egress
params, verb='POST')
File
"C:\Python27\lib\site-packages\boto-2.38.0-py2.7.egg\boto\connection.py",
line 1227, in get_status
raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Invalid
value 'All' for IP protocol. Unknown
protocol.</Message></Error></Errors><RequestID>105afe65-1a4e-42a3-b754-1fc519c54ca4</RequestID></Response>
Please help me take a look at this issue.
Thanks,
Best wishes,
Andy
--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boto-users+***@googlegroups.com.
To post to this group, send email to boto-***@googlegroups.com.
Visit this group at http://groups.google.com/group/boto-users.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "boto-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boto-users+***@googlegroups.com.
To post to this group, send email to boto-***@googlegroups.com.
Visit this group at http://groups.google.com/group/boto-users.
For more options, visit https://groups.google.com/d/optout.