sam-goodwin / punchcard

Type-safe AWS infrastructure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support running on EC2 instance

sam-goodwin opened this issue · comments

commented

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.