Skip to content

Commit 2188803

Browse files
committed
allow AWS and azure to populate wif impersonation path
1 parent aeb00b3 commit 2188803

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/snowflake/connector/connection.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,14 +1358,19 @@ def __open_connection(self):
13581358
)
13591359
if (
13601360
self._workload_identity_impersonation_path
1361-
and self._workload_identity_provider != AttestationProvider.GCP
1361+
and self._workload_identity_provider
1362+
not in (
1363+
AttestationProvider.GCP,
1364+
AttestationProvider.AWS,
1365+
AttestationProvider.AZURE,
1366+
)
13621367
):
13631368
Error.errorhandler_wrapper(
13641369
self,
13651370
None,
13661371
ProgrammingError,
13671372
{
1368-
"msg": "workload_identity_impersonation_path is currently only supported for GCP.",
1373+
"msg": "workload_identity_impersonation_path is currently only supported for GCP, AWS, and Azure.",
13691374
"errno": ER_INVALID_WIF_SETTINGS,
13701375
},
13711376
)

0 commit comments

Comments
 (0)