I am a fan of Kali Linux and AWS so I love the fact that they have an official AMI.  While spinning up a Kali instance in AWS is fairly easy, I had a long flight today so I wrote a script that will spin up a Kali instance in about 60 seconds.
The script does the following:
- Builds a security group that only allows SSH access from your current public IP.
 - Writes a new SSH Key in 
~/Documents/instantkali/ - Creates a 
t2.mediumEC2 instance. 
Here is the output: 
 
Here is the code:
https://gist.github.com/jgamblin/fff0bd2187f070390248c14cc9148062