Skip to content

Commit b6aa2d3

Browse files
committed
fix(iam, aws_credentials): allow aws credentials from env var
1 parent 32a17d8 commit b6aa2d3

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

redshift_connector/iam_helper.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -110,21 +110,6 @@ def set_iam_properties(info: RedshiftProperty) -> RedshiftProperty:
110110
)
111111
elif info.iam is True:
112112

113-
if not any(
114-
(
115-
info.credentials_provider,
116-
info.access_key_id,
117-
info.secret_access_key,
118-
info.session_token,
119-
info.profile,
120-
info.auth_profile,
121-
)
122-
):
123-
raise InterfaceError(
124-
"Invalid connection property setting. Credentials provider, AWS credentials, Redshift auth profile "
125-
"or AWS profile must be provided when IAM is enabled"
126-
)
127-
128113
if info.cluster_identifier is None:
129114
raise InterfaceError(
130115
"Invalid connection property setting. cluster_identifier must be provided when IAM is enabled"

0 commit comments

Comments
 (0)