The AWS CLI run-instances documentation isn't great on how to assign a public IP Address in a VPC when you create a new instance, so this is a quick note on how to do it.
You obviously need to change the "Groups" value to a valid security group in your own VPC, and SubnetID to a subnet-id in your VPC (plus pick the right AMI for image-id), but after that you will be able to create an instance with a public IP!
This entry was posted in tech on January 25, 2015 by ewan.