In AWS, can I automate the following steps?
- Create an instance
- With
scp
, transfer a binary file to run a proxy server on top of this instance ssh
into the instance- update the
crontab
in the instance - Create an image from this instance
This is a simple job; I might just do it manually but using API call, I can do this totally automatically?
I already know how to do step 1
and 5
but how do I automate 2
, 3
, 4
?
Thanks!
scp -i your-private-key proxy_binary user@IP:dest-dir