Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

ec2_tags.py does not us-gov-east-1 #211

Open
fdamstra opened this issue Dec 1, 2020 · 1 comment
Open

ec2_tags.py does not us-gov-east-1 #211

fdamstra opened this issue Dec 1, 2020 · 1 comment

Comments

@fdamstra
Copy link

fdamstra commented Dec 1, 2020

ec2_tags.py still uses the legacy 'boto' interface, which has been discontinued for some time now.

This means that it doesn't work with the us-gov-east-1 region, and likely other new regions are excluded, too.

The problematic line is:

conn = boto.ec2.connect_to_region(
            region,
            aws_access_key_id=credentials['access_key'],
            aws_secret_access_key=credentials['secret_key'],
        )

Testing with a machine that can access both govcloud regions results in:

>>> print(boto.ec2.connect_to_region('us-gov-east-1'))
None
>>> print(boto.ec2.connect_to_region('us-gov-west-1'))
EC2Connection:ec2.us-gov-west-1.amazonaws.com

While this is really a boto problem, that library has been discontinued. This software should probably be rewritten to use boto3.

@fdamstra
Copy link
Author

fdamstra commented Dec 1, 2020

Created PR #212 to address this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant