Recovering EC2 Instances With User Data
So, every now and then when I do something in AWS, I mess it up. One problem that I give myself every now and then is breaking SSH access to an EC2 instance. In that case, you need some sort of out-of-band access to go and fix the SSH configuration.
EC2 instance user data is generally set to be a shell script that cloud-init runs once when the instance is created.