sam-goodwin / punchcard

Type-safe AWS infrastructure.
Apache License 2.0
507 stars 20 forks source link

Support running on EC2 instance #30

Open sam-goodwin opened 5 years ago

sam-goodwin commented 5 years ago

Bootstrap and run a Construct on an EC2 instance, as we do for Lambda Functions.

I can imagine wanting to run some code on boot to install/cleanup state, such as unzip artifacts and start daemons etc. and then run a handle function which returns a Promise (indicating the process has ended).

Deploy via code deploy. Monitor the process with /etc/init.d upstart script.