Boto3: Copy Security Group to another region. How?

Created on 13 Aug 2017  路  5Comments  路  Source: boto/boto3

The question is in the title: how to do this? Didn't find any method.

service-api

Most helpful comment

Boto is just a thin wrapper around the service APIs exposing them as more idiomatic python. This would be a feature request for the EC2 service team and not Boto. We avoid implementing higher level logic on top of the service APIs because it causes feature disparity between the SDKs. If the service team implements the feature then all AWS SDKs will get the feature.

All 5 comments

This sounds like a service related question. Your best bet is probably going to be stack overflow or the likes. You can see links to community help resources here.

I ask if Boto has such API method, I don't ask the advice.

I don't believe the EC2 service has an API for copying security groups to another region. You'll have to combine describes and creates to 'copy' them.

You'll have to combine describes and creates to 'copy' them.

Already combined. But I assume this requirement is rather common and you should consider this in future versions of Boto API.

Boto is just a thin wrapper around the service APIs exposing them as more idiomatic python. This would be a feature request for the EC2 service team and not Boto. We avoid implementing higher level logic on top of the service APIs because it causes feature disparity between the SDKs. If the service team implements the feature then all AWS SDKs will get the feature.

Was this page helpful?
0 / 5 - 0 ratings