Skip to content

Commit 5304003

Browse files
Fix to foursight_core/scripts/local_check_execution.py for newer SSO-based AWS credentials.
1 parent 86913b1 commit 5304003

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

foursight_core/scripts/local_check_execution.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,16 +323,13 @@ def sanity_check_aws_accessibility(verbose: bool = False) -> None:
323323
except Exception:
324324
pass
325325
if not error:
326-
print(f"Using AWS access key ID: {os.environ.get('AWS_ACCESS_KEY_ID')} -> OK")
326+
print(f"Using AWS access key ID: {access_key_id} -> OK")
327327
if aws_account_alias:
328328
print(f"Using AWS account name (alias): {aws_account_alias}")
329329
if aws_account_number:
330330
print(f"Using AWS account (number): {aws_account_number}")
331331
if error:
332-
print(f"Cannot access AWS. Using AWS access key ID: "
333-
f"{os.environ.get('AWS_ACCESS_KEY_ID')} -> ERROR")
334-
exit_with_no_action(
335-
"You must have your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables setup properly.")
332+
exit_with_no_action(f"Cannot access AWS. Your AWS credentials do not appear to be setup property")
336333

337334

338335
def sanity_check_elasticsearch_accessibility(host: str, es_url: Optional[str] = None, timeout: int = 3) -> None:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "foursight-core"
3-
version = "5.6.0.1b1" # TODO: To become 5.6.1
3+
version = "5.6.0.1b2" # TODO: To become 5.6.1
44
description = "Serverless Chalice Application for Monitoring"
55
authors = ["4DN-DCIC Team <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)