Skip to content

Commit

Permalink
fix(aws): add region support in boto3 calls
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmmatos committed Dec 4, 2023
1 parent ca7d55a commit ec91731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fig/backends/aws/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ def submit(self):
def create_payload(self, instance_region):
region = self.region
try:
account_id = boto3.client("sts").get_caller_identity().get('Account')
account_id = boto3.client("sts", region_name=region).get_caller_identity().get('Account')
except KeyError:
# Failed to get endpoint_resolver the first time, try it again
account_id = boto3.client("sts").get_caller_identity().get('Account')
account_id = boto3.client("sts", region_name=region).get_caller_identity().get('Account')
severity_product = self.event.severity_value
severity_normalized = severity_product * 20
if "gov" in region:
Expand Down

0 comments on commit ec91731

Please sign in to comment.