diff --git a/lib/functions/detectFiles.sh b/lib/functions/detectFiles.sh index 7c97f173..813bfea1 100755 --- a/lib/functions/detectFiles.sh +++ b/lib/functions/detectFiles.sh @@ -203,7 +203,8 @@ DetectAWSStatesFIle() { ############################### # check if file has resources # ############################### - if grep -q '"Resource": *"arn"*' "${FILE}"; then + if grep -q '"Resource": *"arn' "${FILE}" && + grep -q '"States"' "${FILE}"; then # Found it return 0 fi