-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBT_TEST_ATHENA_AWS_PROFILE_NAME should be optional if using SSO #68
Comments
|
But I don't use any profile because I export It works if I comment out `"aws_profile_name": os.getenv("DBT_TEST_ATHENA_AWS_PROFILE_NAME"), It will be needed if |
@mattiamatrix I've your same setup, I'm assuming a role using sso. I don't think that we need to change anything here, as in the cases where we use AWS_ env (doesn't matter how they are set), we can just ignore to setup the DBT_TEST_ATHENA_AWS_PROFILE_NAME. |
mmh, @nicor88 can you run My
I believe this is because @pytest.fixture(scope="class")
def dbt_profile_target():
return {
"type": "athena",
"s3_staging_dir": os.getenv("DBT_TEST_ATHENA_S3_STAGING_DIR"),
"schema": os.getenv("DBT_TEST_ATHENA_SCHEMA"),
"database": os.getenv("DBT_TEST_ATHENA_DATABASE"),
"region_name": os.getenv("DBT_TEST_ATHENA_REGION_NAME"),
"threads": 1,
"num_retries": 0,
"work_group": os.getenv("DBT_TEST_ATHENA_WORK_GROUND"),
"aws_profile_name": os.getenv("DBT_TEST_ATHENA_AWS_PROFILE_NAME"),
} if "aws_profile_name": None But, this makes I can make it works with @pytest.fixture(scope="class")
def dbt_profile_target():
return {
"type": "athena",
"s3_staging_dir": os.getenv("DBT_TEST_ATHENA_S3_STAGING_DIR"),
"schema": os.getenv("DBT_TEST_ATHENA_SCHEMA"),
"database": os.getenv("DBT_TEST_ATHENA_DATABASE"),
"region_name": os.getenv("DBT_TEST_ATHENA_REGION_NAME"),
"threads": 1,
"num_retries": 0,
"work_group": os.getenv("DBT_TEST_ATHENA_WORK_GROUND"),
# "aws_profile_name": os.getenv("DBT_TEST_ATHENA_AWS_PROFILE_NAME"),
} |
I updated the PR, I tested with SSO user, it works now, let me know if it works for you. |
DBT_TEST_ATHENA_AWS_PROFILE_NAME
should be optional for those who use SSO and don't have aprofile
dbt-athena/tests/conftest.py
Line 23 in f31a863
The text was updated successfully, but these errors were encountered: