Skip to content

Commit

Permalink
Fix to foursight_core/scripts/local_check_execution.py for newer SSO-…
Browse files Browse the repository at this point in the history
…based AWS credentials.
  • Loading branch information
dmichaels-harvard committed Aug 12, 2024
1 parent 86913b1 commit 5304003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions foursight_core/scripts/local_check_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,16 +323,13 @@ def sanity_check_aws_accessibility(verbose: bool = False) -> None:
except Exception:
pass
if not error:
print(f"Using AWS access key ID: {os.environ.get('AWS_ACCESS_KEY_ID')} -> OK")
print(f"Using AWS access key ID: {access_key_id} -> OK")
if aws_account_alias:
print(f"Using AWS account name (alias): {aws_account_alias}")
if aws_account_number:
print(f"Using AWS account (number): {aws_account_number}")
if error:
print(f"Cannot access AWS. Using AWS access key ID: "
f"{os.environ.get('AWS_ACCESS_KEY_ID')} -> ERROR")
exit_with_no_action(
"You must have your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables setup properly.")
exit_with_no_action(f"Cannot access AWS. Your AWS credentials do not appear to be setup property")


def sanity_check_elasticsearch_accessibility(host: str, es_url: Optional[str] = None, timeout: int = 3) -> None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "foursight-core"
version = "5.6.0.1b1" # TODO: To become 5.6.1
version = "5.6.0.1b2" # TODO: To become 5.6.1
description = "Serverless Chalice Application for Monitoring"
authors = ["4DN-DCIC Team <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 5304003

Please sign in to comment.