Excellent - Thanks Victor - That should have been the end of this but am now running in AWS complaining that I've reached the maximum number of SG's for an instance even though I'm trying to _remove_ an SG (The instance has 2 SG's assigned, trying to set it to only one of them). iPython example:
In [36]: i
Out[36]: Instance:i-0ff1676d
In [37]: i.groups
Out[37]:
[<boto.ec2.group.Group instance at 0x3586518>,
<boto.ec2.group.Group instance at 0x3586560>]
In [38]: newgroups
Out[38]: [<boto.ec2.group.Group instance at 0x3586560>]
In [39]: ",".join([
g.id for g in newgroups])
Out[39]: u'sg-fb779394'
In [40]: i.modify_attribute('groupSet',",".join([
g.id for g in newgroups]))
---------------------------------------------------------------------------
EC2ResponseError Traceback (most recent call last)
<snip>
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>SecurityGroupsPerInstanceLimitExceeded</Code><Message>The maximum number of security groups per instance has been reached.</Message></Error></Errors><RequestID>40c80155-1a80-416b-9f7b-462b71fd2f52</RequestID></Response>
Back to being stumped - Any ideas?
Thanks again for your help.
Ta,
Neil