I have created an aws ec2 instance but it is not giving me a public IP address to ssh into it
Are you experiencing this in one of our labs? If so, can you please share the link to the lab?
Usually, Auto-assign public IP is enabled by default, please check the highlighted setting on the console while creating the instance.
Regards.