how to change ec2 instance username in aws code example Example: how to keep name for ec2 instance running sudo hostnamectl set-hostname webserver.localdomain