Wait that the instance is running before trying to assign an Elastic IP.
Remove base64 encoding during SSH key creation to match with AWS requirements.
Add double quotes around private key file path when printing ssh command.