Skip to content

Commit

Permalink
fix: define the region in the DescribeRegion call
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Dec 1, 2023
1 parent a57befb commit 0afec99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixbackend/cloud_accounts/account_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def can_assume_role(
async def allowed_to_describe_regions(self, result: AssumeRoleResults.Success) -> None:
# we are not interested in the result, just if we are allowed to perform this action
# in case it does not work, an exception is thrown
await run_async(result.boto_session.client("ec2").describe_regions)
await run_async(result.boto_session.client("ec2", region_name="us-east-1").describe_regions)

async def list_accounts(
self, assume_role_result: AssumeRoleResults.Success
Expand Down

0 comments on commit 0afec99

Please sign in to comment.