From d626e7ed296feb74c78b3c1895a37fc5ce631107 Mon Sep 17 00:00:00 2001 From: sai prashanth pulisetti <40313110+prashanthpulisetti@users.noreply.github.com> Date: Fri, 19 Jan 2024 00:27:12 +0530 Subject: [PATCH] Update T1580.yaml --- atomics/T1580/T1580.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atomics/T1580/T1580.yaml b/atomics/T1580/T1580.yaml index 0098f08d..81a41653 100644 --- a/atomics/T1580/T1580.yaml +++ b/atomics/T1580/T1580.yaml @@ -86,6 +86,10 @@ atomic_tests: - description: Check if AWS CLI is installed and configured. prereq_command: | aws sts get-caller-identity --profile #{aws_profile} + get_prereq_command: | + if ! aws sts get-caller-identity --profile #{aws_profile}; then + echo "AWS CLI not properly configured. Please configure AWS CLI." + fi cleanup_commands: - description: No specific cleanup required as this test only reads information.