I have an EC2 Instance with Windows, and I need to run a python3/selenium code automatically right after it starts.
I have tried USER-DATA but no success.
The objective is set a process to run automated tests to our portal automatically after the instance boot, without any manual interaction.
I have tried creating an USER-DATA script like:
<script>
python c:\script.py
</script>
or
<powershell>
python c:\script.py
</powershell>"
I expected that at the end of boot it will start the python script, but no success