Specify region name for IAM
This commit is contained in:
parent
791c25b51c
commit
9c247f4b70
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ def get_template(bucket_name, version, runtime):
|
||||||
|
|
||||||
def get_role_arn():
|
def get_role_arn():
|
||||||
with mock_iam():
|
with mock_iam():
|
||||||
iam = boto3.client("iam")
|
iam = boto3.client("iam", region_name="us-west-2")
|
||||||
try:
|
try:
|
||||||
return iam.get_role(RoleName="my-role")["Role"]["Arn"]
|
return iam.get_role(RoleName="my-role")["Role"]["Arn"]
|
||||||
except ClientError:
|
except ClientError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue