I'm not looking for the public IP address of CloudShell; I know that I can find it out by hitting some external website.
I would like to find out what my public IP address is when I'm connected to CloudShell.
I'm connected to the internet. I've logged into AWS console and opened a new CloudShell session in a browser tab. On a different browser tab, of course, I could visit the external site and see my public IP address, but how do I do it from inside CloudShell?
Purpose: I want to do this programmatically so that one step in our process could be automated (adding the user's IP to security group).