Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29539

EC2 Windows Instance run python script at start

$
0
0

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


Viewing all articles
Browse latest Browse all 29539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>