Just get a lightsail instance for 4 $ per month. The ip is fixed. You got a machine now. So add to all your hosts and you are all set. Comes with some storage roo.
Yeah, use SSM - it is super easy to set up and free. You can use it via terminal or via the web console. The only real thing is while you can use rsync/scp/etc to transfer files via SSM - you still have to have the SG rules.
Alternatively, you can also always just use a bash one-liner to curl for your IP address in cloudshell and then update the SG rule to allow only your cloudshell instance to access it (I’ve done this ages ago in GCP) but I would say just use SSM.
Why not login from your home computer. That ip is probably more stable.
If you want to use cloudshell writing a script to quickly update the sg based on the current cloudshell ip is trvial.
Session Manager is the ideal solution. It requires no customer managed key pairs deployed to your instance, and no need to open any inbound rules in your security group. It’ll give you the web-based console you want, and the permissions to open a console depend on your IAM privileges.
This is a very new feature (only available in some regions as of today), but you can start a cloudshell instance connected to your subnet in your vpc, and then ssh from it to your instances: https://docs.aws.amazon.com/cloudshell/latest/userguide/using-cshell-in-vpc.html With this you can configure your secure access using security group that you assign to your cloudshell - no need to open port 22 to the world
Oops, I’ll edit it. I was about to say you were wrong but I totally am - I meant you had to have an SSH key to use SCP/rsync/etc. You don’t need SSH keys to just access the instance - though. I wrote this from memory and it was over a year ago that I looked into it, haha. I just went with S3 and roles.
Open an incognito window and login with the different users. It should keep the other instances up and running as long as you don’t close out the tab they are located in
changes in your home directory are persistent, put a bash script in there that does curl info.io to get public IP store im variable. lower in the script call aws cli to update your SG rule.
I recently wrote up a workshop on exactly this. I think someone below has added a command that does the trick, except I am not a fan of broad/wide open access (0.0.0.0/0) in the suggested command. I run a command from the cloudshell (wget -qO- ipinfo.io/ipwget -qO- ipinfo.io/ip) and then use that as my source IP - in my specific use case I was looking to run psql commands from CloudShell. This approach worked perfectly well for me.