diff --git a/cid/base.py b/cid/base.py index d14f9570..590d2d1d 100644 --- a/cid/base.py +++ b/cid/base.py @@ -23,7 +23,9 @@ def account_id(self) -> str: @property def domain(self) -> str: - if self.region.startswith('cn-'): + if self.partition == 'aws-us-gov': + return 'amazonaws-us-gov.com' + if self.partition == 'aws-cn': return 'amazonaws.cn' return 'aws.amazon.com'