Golang SSH Security
FYI, you can also instruct cloud-init to use a particular key pair by supplying it in instance metadata/user-data. This avoids the need for hacky scripts extracting public keys from console output (which may also be delayed by a few minutes after the instance starts).