Member-only story
We usually allow our IP into a EC2 with the security group that allow our IP. Unfortunately our IP changes (well, at least Tatooine does) and we’ll have to log into AWS and change it from there.
Let’s use the aws-cli so we can get lazy with a script
You’ll need 3 things before you start:
- AWS cli (assume you’ve installed it, if not google it, smarty)
- The security-gruop-id
- The security-group-rule-id
Here’s the script
Hope I made you lazier, haha