Skip to content

Commit 5b2a016

Browse files
add region when get web identity token
1 parent d496d16 commit 5b2a016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snowflake/connector/wif_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def create_aws_attestation(
198198
# TODO: Remove this environment variable check once AWS WIF outbound token is fully released
199199
# and make it the default behavior (SNOW-2919437)
200200
if os.environ.get("ENABLE_AWS_WIF_OUTBOUND_TOKEN", "false").lower() == "true":
201-
sts_client = session.client("sts")
201+
sts_client = session.client("sts", region_name=region)
202202
response = sts_client.get_web_identity_token(
203203
Audience=[SNOWFLAKE_AUDIENCE], SigningAlgorithm="ES384"
204204
)

0 commit comments

Comments
 (0)