Prowler not scanning multi-accounts using for loop #5142
-
I am wondering if someone can help to understand where I could be going wrong:
The problem is that Prowler runs and scans but it does not move to next for-loop iteration. The last message it outputs is:
It also does not save to S3 bucket. Something happens that makes it stop after first scan. It does not even print the last echo statement: ”Finished first loop” I have checked my for loop and if statements work correctly. I have used —verbose to see if it output any errors, but it does not. Role also exists and has s3:PutObject permissions. Would appreciate if someone can guide what else I can check. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
After a lot of debugging, I realised that ECS task was showing Exit code 3. I am curious to know what is this Exit code 3 and how does adding -z flag help? thanks |
Beta Was this translation helpful? Give feedback.
Hello @qadri99-max, by default Prowler emits an exit code 3 if the scan finishes with
FAIL
findings to allow it to use it in CI/CD pipelines to stop the execution if something fails. As per our documentation https://docs.prowler.com/projects/prowler-open-source/en/latest/tutorials/misc/#disable-exit-code-3 you can disable the exit code 3 with the-z/--ignore-exit-code-3
flags.Please, let me know if this works for you!
Thanks for using Prowler 🚀