diff --git a/foursight_core/scripts/local_check_execution.py b/foursight_core/scripts/local_check_execution.py index fe39d9114..41ef95a1d 100644 --- a/foursight_core/scripts/local_check_execution.py +++ b/foursight_core/scripts/local_check_execution.py @@ -290,6 +290,8 @@ def check_setup_has_queue_action(check_setup: dict, check_name: str) -> Tuple[bo def guess_env() -> Optional[str]: + if aws_credentials_name := os.environ.get("AWS_PROFILE"): + return aws_credentials_name aws_test_dir_name = ".aws_test" aws_test_dir_prefix = f"{aws_test_dir_name}." aws_test_dir = os.path.expanduser(f"~/{aws_test_dir_name}")