Skip to content

Commit

Permalink
fix: Set the region when creating the client to assume roles. (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCardin authored Jul 24, 2023
1 parent ef68ba9 commit 2236bbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pytest-mock-resources"
version = "2.9.0"
version = "2.9.1"
description = "A pytest plugin for easily instantiating reproducible mock resources."
authors = [
"Omar Khan <oakhan3@gmail.com>",
Expand Down
1 change: 1 addition & 0 deletions src/pytest_mock_resources/fixture/moto/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def from_endpoint_url(
endpoint_url=url,
aws_access_key_id="test",
aws_secret_access_key="test",
region_name=region_name,
)
response = sts.assume_role(
RoleArn=f"arn:aws:iam::{account_id}:role/my-role",
Expand Down

0 comments on commit 2236bbe

Please sign in to comment.