I'm trying to SSH into an EC2 instance using a command like this:
ssh -i ~/.ssh/mykey.pem ubuntu@<ec2_public_DNS_name>
But, the PublicDnsName field is showing up blank on the command line after I create the instance. I have already tried to set DNS Hostnames to yes in the VPC dashboard (and then terminated and created another instance). I have also checked the subnet and Auto-Assign public IP is set to yes.
Where can I find the public DNS name?