Suricata deployment with AWS cloudformation template is not working

Hello Team,
I have been trying to deploy suricata with AWS cloudformation template. I created the stack with the provided template and the stack was created successfully. After stack creation, the target instances were created as well. However when I connected to those instances and checked if Suricata is installed or not, I got this message:
“Unit suricata.service could not be found.”
So basically, the stack is created however Suricata is not getting installed on those instances. I followed this steps:

I tried with both template yaml files. One for installing suricata in your existing vpc and the other where a new vpc is created. Facing issues with both.
Is there issue with suricata deployment on amazon linux 2 or just in general with aws cloudformation deployment of suricata?

Any help is highly appreciated. Thanks!