copy Security Group from one VPC to another

924 views
Skip to first unread message

Weng Wilson

unread,
Apr 22, 2014, 5:47:22 AM4/22/14
to boto-...@googlegroups.com
Hey, 

I want to dynamically create VPC for a whole set of environment, however, each time I have to recreate a security group, set the rule again specifically for that VPC, which is very inconvenient. Is there a way to copy security group from a common security group or from another VPC security group? 

thanks,
Wilson

Mitchell Garnaat

unread,
Apr 22, 2014, 7:44:38 AM4/22/14
to boto-users
Hi -

There really isn't right now.  If you look at the ec2/securitygroup.py code you will see a method called copy_to_region that predates VPC and can be used to make a copy of a security group in another region.  This code could pretty easily be modified to copy VPC security groups between VPC's but no one has done that work yet.

Mitch


--
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.

Weng Wilson

unread,
Apr 23, 2014, 5:00:10 AM4/23/14
to boto-...@googlegroups.com, mi...@garnaat.com
Thx, Mitchell! 

在 2014年4月22日星期二UTC+8下午7时44分38秒,Mitchell Garnaat写道:
Reply all
Reply to author
Forward
0 new messages